diff options
Diffstat (limited to 'protocols/Weather/src/weather_http.cpp')
-rw-r--r-- | protocols/Weather/src/weather_http.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/Weather/src/weather_http.cpp b/protocols/Weather/src/weather_http.cpp index 99c262ec6a..79c9efd21e 100644 --- a/protocols/Weather/src/weather_http.cpp +++ b/protocols/Weather/src/weather_http.cpp @@ -40,8 +40,7 @@ int InternetDownloadFile(char *szUrl, char *cookie, char *userAgent, wchar_t **s userAgent = NETLIB_USER_AGENT; // initialize the netlib request - MHttpRequest nlhr; - nlhr.requestType = REQUEST_GET; + MHttpRequest nlhr(REQUEST_GET); nlhr.flags = NLHRF_DUMPASTEXT | NLHRF_HTTP11 | NLHRF_REDIRECT; nlhr.m_szUrl = szUrl; nlhr.AddHeader("User-Agent", userAgent); |