mshtml: Added nsIChannel::SetContentCharset implementation.

This commit is contained in:
Jacek Caban 2011-11-23 16:18:53 +01:00 committed by Alexandre Julliard
parent dd61c7953e
commit 3a3daead74

View file

@ -802,10 +802,19 @@ static nsresult NSAPI nsChannel_SetContentCharset(nsIHttpChannel *iface,
const nsACString *aContentCharset)
{
nsChannel *This = impl_from_nsIHttpChannel(iface);
const char *data;
char *charset;
FIXME("(%p)->(%s)\n", This, debugstr_nsacstr(aContentCharset));
TRACE("(%p)->(%s)\n", This, debugstr_nsacstr(aContentCharset));
return NS_ERROR_NOT_IMPLEMENTED;
nsACString_GetData(aContentCharset, &data);
charset = heap_strdupA(data);
if(!charset)
return NS_ERROR_OUT_OF_MEMORY;
heap_free(This->charset);
This->charset = charset;
return NS_OK;
}
static nsresult NSAPI nsChannel_GetContentLength(nsIHttpChannel *iface, PRInt32 *aContentLength)