Hans Leidekker : winhttp: Respect the redirect policy setting.

Alexandre Julliard julliard at winehq.org
Mon Oct 22 13:42:44 CDT 2012


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Oct 22 10:25:05 2012 +0200

winhttp: Respect the redirect policy setting.

---

 dlls/winhttp/request.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 8109290..7c0d3ab 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1876,7 +1876,8 @@ static BOOL receive_response( request_t *request, BOOL async )
 
         if (status == HTTP_STATUS_MOVED || status == HTTP_STATUS_REDIRECT || status == HTTP_STATUS_REDIRECT_KEEP_VERB)
         {
-            if (request->hdr.disable_flags & WINHTTP_DISABLE_REDIRECTS) break;
+            if (request->hdr.disable_flags & WINHTTP_DISABLE_REDIRECTS ||
+                request->hdr.redirect_policy == WINHTTP_OPTION_REDIRECT_POLICY_NEVER) break;
 
             drain_content( request );
             if (!(ret = handle_redirect( request, status ))) break;




More information about the wine-cvs mailing list