diff options
-rw-r--r-- | protocols/Weather/src/weather_http.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Weather/src/weather_http.cpp b/protocols/Weather/src/weather_http.cpp index 5ef55cd7e8..b6e4edfa75 100644 --- a/protocols/Weather/src/weather_http.cpp +++ b/protocols/Weather/src/weather_http.cpp @@ -82,7 +82,7 @@ int InternetDownloadFile(char *szUrl, char *cookie, char *userAgent, wchar_t **s // allocate memory and save the retrieved data auto *pszHdr = Netlib_GetHeader(nlhrReply, "Content-Type"); // look for Content-Type=utf-8 in header - if (pszHdr && strstr(pszHdr, "utf-8")) + if (pszHdr && strstr(_strlwr(pszHdr), "utf-8")) bIsUtf = true; else { char *end = nlhrReply->pData; |