diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-04 14:13:16 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-04 14:13:16 +0000 |
commit | e08dd78ccf05f9d5d768e5436fcfc5e8126356fe (patch) | |
tree | 3101fdefff844854ea77e2220d62d0cba26cb6b8 /protocols/Steam/src/http_request.h | |
parent | 13a0838f7641f80e3dd166f4a67e6fd43f073456 (diff) |
Steam: some improvements
git-svn-id: http://svn.miranda-ng.org/main/trunk@8848 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/http_request.h')
-rw-r--r-- | protocols/Steam/src/http_request.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 3d433009e8..a065fec60e 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -16,7 +16,7 @@ enum HTTP_STATUS HTTP_STATUS_INSUFICIENTE_STORAGE = 507*/
};
-class HttpRequest : private NETLIBHTTPREQUEST//, public MZeroedObject
+class HttpRequest : public NETLIBHTTPREQUEST//, public MZeroedObject
{
public:
HttpRequest(HANDLE hNetlibUser, int request, LPCSTR url)
@@ -28,11 +28,13 @@ public: dataLength = 0;
headersCount = 0;
szResultDescr = NULL;
- flags = NLHRF_HTTP11;
+ flags = NLHRF_HTTP11 | NLHRF_SSL;
requestType = request;
m_hNetlibUser = hNetlibUser;
m_szUrl = mir_strdup(url);
+
+ AddHeader("User-Agent", "Steam App / Miranda / 0.0.1");
}
~HttpRequest()
|