winhttp: Fix return value for relative redirects.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit ec46607ee0)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Hans Leidekker 2021-09-23 14:58:28 +02:00 committed by Michael Stefaniuc
parent ddd57141e1
commit 73e998ab02
1 changed files with 1 additions and 0 deletions

View File

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