From: Václav Slavík Date: Fri, 29 Aug 2003 09:59:00 +0000 (+0000) Subject: Content-Type parsing should be case insensitive X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5af11a9413cd158fdb0eae77c5a387fdd4e92c95?ds=inline Content-Type parsing should be case insensitive git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index 9718c67ee3..ae752eafba 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -899,7 +899,7 @@ bool wxMetaTagHandler::HandleTag(const wxHtmlTag& tag) tag.GetParam(_T("HTTP-EQUIV")).IsSameAs(_T("Content-Type"), false) && tag.HasParam(_T("CONTENT"))) { - wxString content = tag.GetParam(_T("CONTENT")); + wxString content = tag.GetParam(_T("CONTENT")).Lower(); if (content.Left(19) == _T("text/html; charset=")) { *m_retval = content.Mid(19);