From fe800688fb00a530e5b629616ba870d6b651d9b4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 16 Jan 2020 22:17:42 +0300 Subject: minor fix --- protocols/Weather/src/weather_http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Weather/src') 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; -- cgit v1.2.3