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

This commit is contained in:
Jacek Caban 2012-01-27 15:56:32 +01:00 committed by Alexandre Julliard
parent 61fd6c97ba
commit 7ab1259a72
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}