Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
890977a1
Commit
890977a1
authored
Sep 20, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always replace whatever is already in the HTTP "Host" header.
parent
4949a717
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
http.c
dlls/wininet/http.c
+3
-3
No files found.
dlls/wininet/http.c
View file @
890977a1
...
...
@@ -747,10 +747,10 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
InternetCrackUrlW
(
lpszReferrer
,
0
,
0
,
&
UrlComponents
);
if
(
strlenW
(
UrlComponents
.
lpszHostName
))
HTTP_ProcessHeader
(
lpwhr
,
g_szHost
,
UrlComponents
.
lpszHostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDHDR_FLAG_REQ
);
HTTP_ProcessHeader
(
lpwhr
,
g_szHost
,
UrlComponents
.
lpszHostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADD
REQ_FLAG_REPLACE
|
HTTP_ADD
HDR_FLAG_REQ
);
}
else
HTTP_ProcessHeader
(
lpwhr
,
g_szHost
,
lpwhs
->
lpszServerName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDHDR_FLAG_REQ
);
HTTP_ProcessHeader
(
lpwhr
,
g_szHost
,
lpwhs
->
lpszServerName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADD
REQ_FLAG_REPLACE
|
HTTP_ADD
HDR_FLAG_REQ
);
if
(
NULL
!=
hIC
->
lpszProxy
&&
hIC
->
lpszProxy
[
0
]
!=
0
)
HTTP_DealWithProxy
(
hIC
,
lpwhs
,
lpwhr
);
...
...
@@ -1375,7 +1375,7 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
lpwhs
->
lpszUserName
=
WININET_strdupW
(
userName
);
lpwhs
->
nServerPort
=
urlComponents
.
nPort
;
HTTP_ProcessHeader
(
lpwhr
,
g_szHost
,
hostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDHDR_FLAG_REQ
);
HTTP_ProcessHeader
(
lpwhr
,
g_szHost
,
hostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADD
REQ_FLAG_REPLACE
|
HTTP_ADD
HDR_FLAG_REQ
);
SendAsyncCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_RESOLVING_NAME
,
...
...
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