mshtml: Return failure in GetContentType if content type is not available.
This commit is contained in:
parent
b7c257bb48
commit
1d134f74ab
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue