Module: wine Branch: master Commit: 14fb41894275337c33a4105a4f763540fd979d56 URL: http://source.winehq.org/git/wine.git/?a=commit;h=14fb41894275337c33a4105a4f...
Author: Rob Shearman rob@codeweavers.com Date: Thu Jan 4 18:21:13 2007 +0000
wininet: Fix HTTP redirects by reseting loop_next after one loop.
---
dlls/wininet/http.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 813d99e..c18e45e 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -2225,7 +2225,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWINI BOOL bSuccess = FALSE; LPWSTR requestString = NULL; INT responseLen; - BOOL loop_next = FALSE; + BOOL loop_next; INTERNET_ASYNC_RESULT iar;
TRACE("--> %p\n", lpwhr); @@ -2253,6 +2253,8 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWINI DWORD len; char *ascii_req;
+ loop_next = FALSE; + if (TRACE_ON(wininet)) { LPHTTPHEADERW Host = HTTP_GetHeader(lpwhr,szHost);