Content-Type parsing should be case insensitive
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1fa29bdc25
commit
5af11a9413
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user