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 /plugins/SmileyAdd | |
| parent | 74c01c7fb7862ec01ad27c4b225b08b7aa0f3b0a (diff) | |
more strict constructor of MHttpRequest to avoid quirks
Diffstat (limited to 'plugins/SmileyAdd')
| -rw-r--r-- | plugins/SmileyAdd/src/download.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/SmileyAdd/src/download.cpp b/plugins/SmileyAdd/src/download.cpp index 1aa2ac1fd4..0695876acc 100644 --- a/plugins/SmileyAdd/src/download.cpp +++ b/plugins/SmileyAdd/src/download.cpp @@ -44,8 +44,7 @@ bool InternetDownloadFile(const char *szUrl, char *szDest, HNETLIBCONN &hHttpDwn int result = 0xBADBAD;
// initialize the netlib request
- MHttpRequest nlhr;
- nlhr.requestType = REQUEST_GET;
+ MHttpRequest nlhr(REQUEST_GET);
nlhr.flags = NLHRF_NODUMP | NLHRF_HTTP11 | NLHRF_PERSISTENT | NLHRF_REDIRECT;
nlhr.m_szUrl = szUrl;
nlhr.nlc = hHttpDwnl;
|
