Some cleanups and fixes to obscure crashes

This commit is contained in:
Henrik Rydgård committed 2023-09-24 13:05:25 +02:00
1 parent 559cc60a66
commit 546f9d7743
5 files changed
+14 -7

No files matched your search

+2 -2
View File
@@ -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,