mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 13:36:24 +02:00
http: Set a more useful user agent.
This commit is contained in:
1 parent
e2e1c677cb
commit
a35b21a5d7
7 files changed
+19
-4
No files matched your search
@@ -181,11 +181,11 @@ void Connection::Disconnect() {
|
||||
namespace http {
|
||||
|
||||
// TODO: do something sane here
|
||||
#define USERAGENT "NATIVEAPP 1.0"
|
||||
constexpr const char *DEFAULT_USERAGENT = "NATIVEAPP 1.0";
|
||||
|
||||
Client::Client() {
|
||||
httpVersion_ = "1.1";
|
||||
userAgent_ = USERAGENT;
|
||||
userAgent_ = DEFAULT_USERAGENT;
|
||||
}
|
||||
|
||||
Client::~Client() {
|
||||
@@ -323,7 +323,7 @@ int Client::SendRequestWithData(const char *method, const char *resource, const
|
||||
buffer.Printf(tpl,
|
||||
method, resource, httpVersion_,
|
||||
host_.c_str(),
|
||||
userAgent_,
|
||||
userAgent_.c_str(),
|
||||
otherHeaders ? otherHeaders : "");
|
||||
buffer.Append(data);
|
||||
bool flushed = buffer.FlushSocket(sock(), dataTimeout_);
|
||||
|
||||
Reference in new issue
Block a user