mshtml: Added nsIChannel::SetContentType implementation.
This commit is contained in:
parent
91800118a8
commit
e2645dec1c
@ -485,14 +485,21 @@ static nsresult NSAPI nsChannel_SetContentType(nsIHttpChannel *iface,
|
|||||||
const nsACString *aContentType)
|
const nsACString *aContentType)
|
||||||
{
|
{
|
||||||
nsChannel *This = NSCHANNEL_THIS(iface);
|
nsChannel *This = NSCHANNEL_THIS(iface);
|
||||||
|
const char *content_type;
|
||||||
|
|
||||||
TRACE("(%p)->(%p)\n", This, aContentType);
|
TRACE("(%p)->(%p)\n", This, aContentType);
|
||||||
|
|
||||||
|
nsACString_GetData(aContentType, &content_type);
|
||||||
|
|
||||||
|
TRACE("content_type %s\n", content_type);
|
||||||
|
|
||||||
|
heap_free(This->content_type);
|
||||||
|
This->content_type = heap_strdupA(content_type);
|
||||||
|
|
||||||
if(This->channel)
|
if(This->channel)
|
||||||
return nsIChannel_SetContentType(This->channel, aContentType);
|
return nsIChannel_SetContentType(This->channel, aContentType);
|
||||||
|
|
||||||
FIXME("default action not implemented\n");
|
return NS_OK;
|
||||||
return NS_ERROR_NOT_IMPLEMENTED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static nsresult NSAPI nsChannel_GetContentCharset(nsIHttpChannel *iface,
|
static nsresult NSAPI nsChannel_GetContentCharset(nsIHttpChannel *iface,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user