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:
parent
f58505d1db
commit
3b052877e4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue