winhttp: Fix return value for relative redirects.

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-23 14:58:28 +02:00 committed by Alexandre Julliard
parent 5da1d59241
commit ec46607ee0
1 changed files with 1 additions and 0 deletions

View File

@ -2575,6 +2575,7 @@ static DWORD handle_redirect( struct request *request, DWORD status )
}
free( request->path );
request->path = path;
ret = ERROR_SUCCESS;
send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_REDIRECT, location, len_loc + 1 );
}