Jacek Caban : mshtml: Added nsIChannel::SetContentType implementation.
Alexandre Julliard
julliard at winehq.org
Thu Mar 27 07:21:44 CDT 2008
Module: wine
Branch: master
Commit: e2645dec1cd3d9ad0b67a43db8112be8022f879b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e2645dec1cd3d9ad0b67a43db8112be8022f879b
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Mar 26 15:24:38 2008 +0100
mshtml: Added nsIChannel::SetContentType implementation.
---
dlls/mshtml/nsio.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index f690344..0331882 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -485,14 +485,21 @@ static nsresult NSAPI nsChannel_SetContentType(nsIHttpChannel *iface,
const nsACString *aContentType)
{
nsChannel *This = NSCHANNEL_THIS(iface);
+ const char *content_type;
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)
return nsIChannel_SetContentType(This->channel, aContentType);
- FIXME("default action not implemented\n");
- return NS_ERROR_NOT_IMPLEMENTED;
+ return NS_OK;
}
static nsresult NSAPI nsChannel_GetContentCharset(nsIHttpChannel *iface,
More information about the wine-cvs
mailing list