summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/http_request.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/http_request.h')
-rw-r--r--protocols/Steam/src/http_request.h9
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++)