Hans Leidekker : wininet: Send a 'Pragma: no-cache' header if asked for.

Alexandre Julliard julliard at winehq.org
Tue Jun 24 06:43:58 CDT 2008


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

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Mon Jun 23 20:58:25 2008 +0200

wininet: Send a 'Pragma: no-cache' header if asked for.

---

 dlls/wininet/http.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index c8a9608..ea2afb3 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3190,6 +3190,11 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
         HTTP_HttpAddRequestHeadersW(lpwhr, agent_header, strlenW(agent_header), HTTP_ADDREQ_FLAG_ADD_IF_NEW);
         HeapFree(GetProcessHeap(), 0, agent_header);
     }
+    if (lpwhr->hdr.dwFlags & INTERNET_FLAG_PRAGMA_NOCACHE)
+    {
+        static const WCHAR pragma_nocache[] = {'P','r','a','g','m','a',':',' ','n','o','-','c','a','c','h','e','\r','\n',0};
+        HTTP_HttpAddRequestHeadersW(lpwhr, pragma_nocache, strlenW(pragma_nocache), HTTP_ADDREQ_FLAG_ADD_IF_NEW);
+    }
 
     do
     {




More information about the wine-cvs mailing list