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,
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(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
DWORD len;
char *ascii_req;
loop_next = FALSE;
if (TRACE_ON(wininet))
{
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