user agent

This commit is contained in:
Benjamin Sergeant committed 2019-08-30 12:50:56 -07:00
1 parent 06bc795133
commit 6b2cdb6b54
7 files changed
+123 -2

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@
#include "IXHttpClient.h"
#include "IXUrlParser.h"
#include "IXUserAgent.h"
#include "IXWebSocketHttpHeaders.h"
#include "IXSocketFactory.h"
@@ -171,7 +172,7 @@ namespace ix
// Set a default User agent if none is present
if (headers.find("User-Agent") == headers.end())
{
ss << "User-Agent: ixwebsocket" << "\r\n";
ss << "User-Agent: " << userAgent() << "\r\n";
}
if (verb == kPost || verb == kPut)