Commit cfeaa3e6 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

urlmon: Fix the MIME type reported by the HTTP protocol when the Content-Type…

urlmon: Fix the MIME type reported by the HTTP protocol when the Content-Type headers contains charset data too.
parent dda80531
...@@ -641,6 +641,10 @@ static HRESULT WINAPI HttpProtocol_Continue(IInternetProtocol *iface, PROTOCOLDA ...@@ -641,6 +641,10 @@ static HRESULT WINAPI HttpProtocol_Continue(IInternetProtocol *iface, PROTOCOLDA
} }
else else
{ {
/* remove the charset, if present */
LPWSTR p = strchrW(content_type, ';');
if (p) *p = '\0';
IInternetProtocolSink_ReportProgress(This->protocol_sink, IInternetProtocolSink_ReportProgress(This->protocol_sink,
(This->grfBINDF & BINDF_FROMURLMON) ? (This->grfBINDF & BINDF_FROMURLMON) ?
BINDSTATUS_MIMETYPEAVAILABLE : BINDSTATUS_MIMETYPEAVAILABLE :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment