Commit 1d134f74 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Return failure in GetContentType if content type is not available.

parent b7c257bb
......@@ -502,9 +502,8 @@ static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString
if(This->channel)
return nsIChannel_GetContentType(This->channel, aContentType);
TRACE("returning default text/html\n");
nsACString_SetData(aContentType, "text/html");
return NS_OK;
WARN("unknown type\n");
return NS_ERROR_FAILURE;
}
static nsresult NSAPI nsChannel_SetContentType(nsIHttpChannel *iface,
......
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