wininet: Fix https connections over proxy.

Successful CONNECT request switch to tunnel instead of having a message
body.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2018-03-15 18:22:08 +01:00 committed by Alexandre Julliard
parent 1ba91ec9b4
commit ea0dae6db2
1 changed files with 2 additions and 0 deletions

View File

@ -5147,6 +5147,8 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
remove_header(request, szProxy_Authorization, TRUE);
destroy_authinfo(request->proxyAuthInfo);
request->proxyAuthInfo = NULL;
request->contentLength = 0;
request->netconn_stream.content_length = 0;
secure_proxy_connect = FALSE;
loop_next = TRUE;