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
4d84eb26
Commit
4d84eb26
authored
Jan 04, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix handling of host and referrer headers in HttpOpenRequest.
parent
d17b2930
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
http.c
dlls/wininet/http.c
+2
-18
No files found.
dlls/wininet/http.c
View file @
4d84eb26
...
...
@@ -1413,7 +1413,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
}
if
(
NULL
!=
lpszReferrer
&&
strlenW
(
lpszReferrer
))
HTTP_ProcessHeader
(
lpwhr
,
HTTP_REFERER
,
lpszReferrer
,
HTTP_ADD
HDR_FLAG_COALESCE
);
HTTP_ProcessHeader
(
lpwhr
,
HTTP_REFERER
,
lpszReferrer
,
HTTP_ADD
REQ_FLAG_ADD
|
HTTP_ADDHDR_FLAG_REQ
);
if
(
lpszAcceptTypes
)
{
...
...
@@ -1436,23 +1436,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
else
if
(
strlenW
(
lpszVerb
))
lpwhr
->
lpszVerb
=
WININET_strdupW
(
lpszVerb
);
if
(
NULL
!=
lpszReferrer
&&
strlenW
(
lpszReferrer
))
{
WCHAR
buf
[
MAXHOSTNAME
];
URL_COMPONENTSW
UrlComponents
;
buf
[
0
]
=
'\0'
;
memset
(
&
UrlComponents
,
0
,
sizeof
UrlComponents
);
UrlComponents
.
dwStructSize
=
sizeof
UrlComponents
;
UrlComponents
.
lpszHostName
=
buf
;
UrlComponents
.
dwHostNameLength
=
MAXHOSTNAME
;
if
(
InternetCrackUrlW
(
lpszReferrer
,
0
,
0
,
&
UrlComponents
)
&&
strlenW
(
UrlComponents
.
lpszHostName
))
HTTP_ProcessHeader
(
lpwhr
,
szHost
,
UrlComponents
.
lpszHostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDREQ_FLAG_REPLACE
|
HTTP_ADDHDR_FLAG_REQ
);
}
else
HTTP_ProcessHeader
(
lpwhr
,
szHost
,
lpwhs
->
lpszHostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDREQ_FLAG_REPLACE
|
HTTP_ADDHDR_FLAG_REQ
);
HTTP_ProcessHeader
(
lpwhr
,
szHost
,
lpwhs
->
lpszHostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDHDR_FLAG_REQ
);
if
(
lpwhs
->
nServerPort
==
INTERNET_INVALID_PORT_NUMBER
)
lpwhs
->
nServerPort
=
(
dwFlags
&
INTERNET_FLAG_SECURE
?
...
...
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