urlmon: Fix the MIME type reported by the HTTP protocol when the Content-Type headers contains charset data too.

oldstable
Rob Shearman 2007-10-21 15:24:07 +01:00 committed by Alexandre Julliard
parent dda8053179
commit cfeaa3e682
1 changed files with 4 additions and 0 deletions

View File

@ -641,6 +641,10 @@ static HRESULT WINAPI HttpProtocol_Continue(IInternetProtocol *iface, PROTOCOLDA
}
else
{
/* remove the charset, if present */
LPWSTR p = strchrW(content_type, ';');
if (p) *p = '\0';
IInternetProtocolSink_ReportProgress(This->protocol_sink,
(This->grfBINDF & BINDF_FROMURLMON) ?
BINDSTATUS_MIMETYPEAVAILABLE :