[2/2] winhttp: Respect the redirect policy setting.
Hans Leidekker
hans at codeweavers.com
Mon Oct 22 03:25:05 CDT 2012
---
dlls/winhttp/request.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
--
1.7.10.4
More information about the wine-patches
mailing list