diff options
Diffstat (limited to 'protocols/SkypeWeb/src/http_request.h')
-rw-r--r-- | protocols/SkypeWeb/src/http_request.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/http_request.h b/protocols/SkypeWeb/src/http_request.h index a652f6ae90..90d552358c 100644 --- a/protocols/SkypeWeb/src/http_request.h +++ b/protocols/SkypeWeb/src/http_request.h @@ -223,13 +223,9 @@ protected: {
va_list args;
va_start(args, fmt);
- if (url.Find('?') == -1)
- url += '?';
- else
- url += '&';
+ url += (url.Find('?') == -1) ? '?' : '&';
url.AppendFormatV(fmt, args);
va_end(args);
-
szUrl = url.GetBuffer();
}
@@ -244,6 +240,7 @@ public: cbSize = sizeof(NETLIBHTTPREQUEST);
flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_DUMPASTEXT;
requestType = type;
+ pData = NULL;
}
HttpRequest(int type, HttpRequestUrlFormat, LPCSTR urlFormat, ...)
@@ -253,6 +250,7 @@ public: flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_DUMPASTEXT;
requestType = type;
va_end(formatArgs);
+ pData = NULL;
}
~HttpRequest()
|