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

This commit is contained in:
Jacek Caban 2009-10-13 20:50:55 +02:00 committed by Alexandre Julliard
parent b7c257bb48
commit 1d134f74ab
1 changed files with 2 additions and 3 deletions

View File

@ -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,