diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-09 13:13:23 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-09 13:13:23 +0300 |
commit | 110fdc1157d94f5d787a21c60163681767fdd6c4 (patch) | |
tree | 3a401fa5b6d10e397784f4a7aa1cda38beee9fb9 /protocols/CloudFile | |
parent | 74c01c7fb7862ec01ad27c4b225b08b7aa0f3b0a (diff) |
more strict constructor of MHttpRequest to avoid quirks
Diffstat (limited to 'protocols/CloudFile')
-rw-r--r-- | protocols/CloudFile/src/http_request.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/protocols/CloudFile/src/http_request.h b/protocols/CloudFile/src/http_request.h index 214ecea761..c9921cfd76 100644 --- a/protocols/CloudFile/src/http_request.h +++ b/protocols/CloudFile/src/http_request.h @@ -22,12 +22,9 @@ class HttpRequest : public MHttpRequest private: CMStringA m_szUrl; - void Init(int type) + void Init() { - requestType = type; flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_NODUMP; - nlc = NULL; - timeout = 0; } protected: @@ -78,16 +75,18 @@ protected: } public: - HttpRequest(int type, LPCSTR url) + HttpRequest(int type, LPCSTR url) : + MHttpRequest(type) { - Init(type); + Init(); m_szUrl = url; } - HttpRequest(int type, CMStringDataFormat, LPCSTR urlFormat, ...) + HttpRequest(int type, CMStringDataFormat, LPCSTR urlFormat, ...) : + MHttpRequest(type) { - Init(type); + Init(); va_list formatArgs; va_start(formatArgs, urlFormat); |