]> git.saurik.com Git - wxWidgets.git/commitdiff
Content-Type parsing should be case insensitive
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 29 Aug 2003 09:59:00 +0000 (09:59 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 29 Aug 2003 09:59:00 +0000 (09:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlpars.cpp

index 9718c67ee37d7ee5e45979a1364e2e417e21c520..ae752eafbad4a181c2c048f2f9bddd78fe31d845 100644 (file)
@@ -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);