Module: wine Branch: master Commit: cfeaa3e682e8c645ee9c6b792533e49613d8bc54 URL: http://source.winehq.org/git/wine.git/?a=commit;h=cfeaa3e682e8c645ee9c6b7925...
Author: Rob Shearman rob@codeweavers.com Date: Sun Oct 21 15:24:07 2007 +0100
urlmon: Fix the MIME type reported by the HTTP protocol when the Content-Type headers contains charset data too.
---
dlls/urlmon/http.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c index e356f34..b86dbef 100644 --- a/dlls/urlmon/http.c +++ b/dlls/urlmon/http.c @@ -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 :