diff options
Diffstat (limited to 'protocols/FacebookRM/src/http_request.h')
-rw-r--r-- | protocols/FacebookRM/src/http_request.h | 8 |
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() |