Commit 453e0e11 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Don't use host header in compose_request_url.

parent 7528f4d5
......@@ -1855,16 +1855,11 @@ static WCHAR *compose_request_url(http_request_t *req)
{
static const WCHAR http[] = { 'h','t','t','p',':','/','/',0 };
static const WCHAR https[] = { 'h','t','t','p','s',':','/','/',0 };
LPHTTPHEADERW host_header;
const WCHAR *host, *scheme;
WCHAR *buf, *ptr;
size_t len;
EnterCriticalSection( &req->headers_section );
host_header = HTTP_GetHeader(req, hostW);
if (host_header) host = host_header->lpszValue;
else host = req->server->canon_host_port;
host = req->server->canon_host_port;
if (req->server->is_https)
scheme = https;
......@@ -1888,7 +1883,6 @@ static WCHAR *compose_request_url(http_request_t *req)
*ptr = 0;
}
LeaveCriticalSection( &req->headers_section );
return buf;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment