Jacek Caban : mshtml: Added nsIHttpChannel:: VisitResponseHeaders implementation.

Alexandre Julliard julliard at winehq.org
Wed Oct 13 11:43:11 CDT 2010


Module: wine
Branch: master
Commit: 91acf625fb32c271146d61b75606badf64d6ac0f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=91acf625fb32c271146d61b75606badf64d6ac0f

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Oct 13 15:11:13 2010 +0200

mshtml: Added nsIHttpChannel::VisitResponseHeaders implementation.

---

 dlls/mshtml/nsio.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index d67c7b7..fbfde61 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -1247,10 +1247,16 @@ static nsresult NSAPI nsChannel_VisitResponseHeaders(nsIHttpChannel *iface,
 static nsresult NSAPI nsChannel_IsNoStoreResponse(nsIHttpChannel *iface, PRBool *_retval)
 {
     nsChannel *This = NSCHANNEL_THIS(iface);
+    http_header_t *header;
 
-    FIXME("(%p)->(%p)\n", This, _retval);
+    static const WCHAR cache_controlW[] = {'C','a','c','h','e','-','C','o','n','t','r','o','l'};
+    static const WCHAR no_storeW[] = {'n','o','-','s','t','o','r','e',0};
 
-    return NS_ERROR_NOT_IMPLEMENTED;
+    TRACE("(%p)->(%p)\n", This, _retval);
+
+    header = find_http_header(&This->response_headers, cache_controlW, sizeof(cache_controlW)/sizeof(WCHAR));
+    *_retval = header && !strcmpiW(header->data, no_storeW);
+    return NS_OK;
 }
 
 static nsresult NSAPI nsChannel_IsNoCacheResponse(nsIHttpChannel *iface, PRBool *_retval)




More information about the wine-cvs mailing list