user agent

This commit is contained in:
Benjamin Sergeant
2019-08-30 12:48:18 -07:00
parent 06bc795133
commit 6b2cdb6b54
7 changed files with 123 additions and 2 deletions

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)