Commit 14fb4189 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

wininet: Fix HTTP redirects by reseting loop_next after one loop.

parent 7e1fead3
...@@ -2225,7 +2225,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders, ...@@ -2225,7 +2225,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
BOOL bSuccess = FALSE; BOOL bSuccess = FALSE;
LPWSTR requestString = NULL; LPWSTR requestString = NULL;
INT responseLen; INT responseLen;
BOOL loop_next = FALSE; BOOL loop_next;
INTERNET_ASYNC_RESULT iar; INTERNET_ASYNC_RESULT iar;
TRACE("--> %p\n", lpwhr); TRACE("--> %p\n", lpwhr);
...@@ -2253,6 +2253,8 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders, ...@@ -2253,6 +2253,8 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
DWORD len; DWORD len;
char *ascii_req; char *ascii_req;
loop_next = FALSE;
if (TRACE_ON(wininet)) if (TRACE_ON(wininet))
{ {
LPHTTPHEADERW Host = HTTP_GetHeader(lpwhr,szHost); LPHTTPHEADERW Host = HTTP_GetHeader(lpwhr,szHost);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment