mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Some cleanups and fixes to obscure crashes
This commit is contained in:
1 parent
559cc60a66
commit
546f9d7743
5 files changed
+14
-7
No files matched your search
@@ -219,9 +219,9 @@ namespace http {
|
||||
|
||||
// TODO: do something sane here
|
||||
constexpr const char *DEFAULT_USERAGENT = "PPSSPP";
|
||||
constexpr const char *HTTP_VERSION = "1.1";
|
||||
|
||||
Client::Client() {
|
||||
httpVersion_ = "1.1";
|
||||
userAgent_ = DEFAULT_USERAGENT;
|
||||
}
|
||||
|
||||
@@ -353,7 +353,7 @@ int Client::SendRequestWithData(const char *method, const RequestParams &req, co
|
||||
"\r\n";
|
||||
|
||||
buffer.Printf(tpl,
|
||||
method, req.resource.c_str(), httpVersion_,
|
||||
method, req.resource.c_str(), HTTP_VERSION,
|
||||
host_.c_str(),
|
||||
userAgent_.c_str(),
|
||||
req.acceptMime,
|
||||
|
||||
Reference in new issue
Block a user