wininet: Reset buffer size before each call to HTTP_HttpQueryInfoW.

Otherwise when headers contain multiple entries like

WWW-Authenticate: Negotiate
WWW-Authenticate: Basic realm="SAMPLE.COM"

then 2nd query fails because buffer size is shorter than the header value.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2021-06-03 17:01:06 +03:00 committed by Alexandre Julliard
parent f58505d1db
commit 3b052877e4
1 changed files with 4 additions and 0 deletions

View File

@ -5125,6 +5125,8 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
loop_next = TRUE; loop_next = TRUE;
break; break;
} }
dwBufferSize = 2048;
} }
heap_free( host ); heap_free( host );
@ -5153,6 +5155,8 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
loop_next = TRUE; loop_next = TRUE;
break; break;
} }
dwBufferSize = 2048;
} }
if(!loop_next) { if(!loop_next) {