Commit 7ab1259a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fallback to text/html mime type for document channel in nsIChannel::GetContentType.

parent 61fd6c97
...@@ -787,6 +787,12 @@ static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString ...@@ -787,6 +787,12 @@ static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString
return S_OK; 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"); WARN("unknown type\n");
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
} }
......
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