summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/http_request.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-09-04 14:04:49 +0000
committerRobert Pösel <robyer@seznam.cz>2016-09-04 14:04:49 +0000
commit8234832e06e873df035270f162d7d151fbf6e7eb (patch)
tree200613059ddb4bc61c73fa946ca735836ee92163 /protocols/FacebookRM/src/http_request.h
parent2f492f0c3af53dada6b909d1c31dc665c33dfde5 (diff)
Facebook: Massive rewrite of all communication requests
Note it doesn't use persistent connection yet. git-svn-id: http://svn.miranda-ng.org/main/trunk@17246 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/http_request.h')
-rw-r--r--protocols/FacebookRM/src/http_request.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/http_request.h b/protocols/FacebookRM/src/http_request.h
index ec5c424b57..86a23cb5c8 100644
--- a/protocols/FacebookRM/src/http_request.h
+++ b/protocols/FacebookRM/src/http_request.h
@@ -233,6 +233,8 @@ public:
HttpRequestUrl Url;
HttpRequestHeaders Headers;
HttpRequestBody Body;
+
+ bool NotifyErrors;
HttpRequest(int type, LPCSTR url)
: Url(*this, url), Headers(*this)
@@ -241,6 +243,9 @@ public:
flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_DUMPASTEXT;
requestType = type;
pData = NULL;
+ timeout = 20 * 1000;
+
+ NotifyErrors = true;
}
HttpRequest(int type, HttpRequestUrlFormat, LPCSTR urlFormat, ...)
@@ -251,6 +256,9 @@ public:
requestType = type;
va_end(formatArgs);
pData = NULL;
+ timeout = 20 * 1000;
+
+ NotifyErrors = true;
}
virtual ~HttpRequest()