From 91acf625fb32c271146d61b75606badf64d6ac0f Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 13 Oct 2010 15:11:13 +0200 Subject: [PATCH] mshtml: Added nsIHttpChannel::VisitResponseHeaders implementation. --- dlls/mshtml/nsio.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index d67c7b79033..fbfde61e1a6 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)