diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-09-13 08:03:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-09-13 08:03:11 +0000 |
commit | f5584d8ae977f278ae9735f53ab868c8574c2451 (patch) | |
tree | eb44163dde10e6ced19b82c151191f9df7656e87 /protocols/Steam/src/http_request.h | |
parent | 65d21daad01ddb2323d87ef343cfeef8fde5650b (diff) |
Steam: fix login
git-svn-id: http://svn.miranda-ng.org/main/trunk@15338 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/http_request.h')
-rw-r--r-- | protocols/Steam/src/http_request.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 89e76e8ac2..126aa857f0 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -3,12 +3,16 @@ class HttpResponse : public NETLIBHTTPREQUEST, public MZeroedObject
{
+private:
+ bool isEmptyResponse;
+
public:
const NETLIBHTTPREQUEST* request;
HttpResponse(const NETLIBHTTPREQUEST* response, const NETLIBHTTPREQUEST* request = NULL)
{
request = request;
+ isEmptyResponse = (response == NULL);
if (response)
{
cbSize = response->cbSize;
@@ -32,6 +36,11 @@ public: }
}
+ bool const operator !() const
+ {
+ return isEmptyResponse;
+ }
+
~HttpResponse()
{
for (int i = 0; i < headersCount; i++)
|