Jacek Caban : wininet: Don't use host header in compose_request_url.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu May 19 10:32:06 CDT 2016
Module: wine
Branch: master
Commit: 453e0e11126275c834870dd9c529f4d289b10902
URL: http://source.winehq.org/git/wine.git/?a=commit;h=453e0e11126275c834870dd9c529f4d289b10902
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed May 18 18:02:16 2016 +0200
wininet: Don't use host header in compose_request_url.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wininet/http.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index f932a27..14d4d1e 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -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;
}
More information about the wine-cvs
mailing list