winhttp: Don't fail the request if authorization fails.

Fixes a regression from 080dfbee31.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2021-09-16 11:49:43 +02:00 committed by Alexandre Julliard
parent 1aa359a100
commit 5731c38ae1
1 changed files with 1 additions and 1 deletions

View File

@ -2736,7 +2736,7 @@ static DWORD receive_response( struct request *request, BOOL async )
{
if (request->hdr.disable_flags & WINHTTP_DISABLE_AUTHENTICATION) break;
if ((ret = handle_authorization( request, status ))) break;
if (handle_authorization( request, status )) break;
/* recurse synchronously */
if (!(ret = send_request( request, NULL, 0, request->optional, request->optional_len, 0, 0, FALSE ))) continue;