Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
453e0e11
Commit
453e0e11
authored
May 18, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't use host header in compose_request_url.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7528f4d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
http.c
dlls/wininet/http.c
+1
-7
No files found.
dlls/wininet/http.c
View file @
453e0e11
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment