From 7ab1259a72030d0b469463fa2a2ac9a950ae26ba Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 27 Jan 2012 15:56:32 +0100 Subject: [PATCH] mshtml: Fallback to text/html mime type for document channel in nsIChannel::GetContentType. --- dlls/mshtml/nsio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 8e7bdec3b06..744e914e79d 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -787,6 +787,12 @@ static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString return S_OK; } + if(This->uri->is_doc_uri) { + WARN("Document channel with no MIME set. Assuming text/html\n"); + nsACString_SetData(aContentType, "text/html"); + return S_OK; + } + WARN("unknown type\n"); return NS_ERROR_FAILURE; }