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
dfa9f4bc
Commit
dfa9f4bc
authored
Jan 24, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Insert custom headers only once in HTTP_HttpSendRequestW.
parent
ac26517a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
http.c
dlls/wininet/http.c
+4
-7
No files found.
dlls/wininet/http.c
View file @
dfa9f4bc
...
...
@@ -4707,6 +4707,10 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
HTTP_HttpAddRequestHeadersW
(
request
,
cache_control
,
strlenW
(
cache_control
),
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
}
/* add the headers the caller supplied */
if
(
lpszHeaders
&&
dwHeaderLength
)
HTTP_HttpAddRequestHeadersW
(
request
,
lpszHeaders
,
dwHeaderLength
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDHDR_FLAG_REPLACE
);
do
{
DWORD
len
;
...
...
@@ -4740,13 +4744,6 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
if
(
!
(
request
->
hdr
.
dwFlags
&
INTERNET_FLAG_NO_COOKIES
))
HTTP_InsertCookies
(
request
);
/* add the headers the caller supplied */
if
(
lpszHeaders
&&
dwHeaderLength
)
{
HTTP_HttpAddRequestHeadersW
(
request
,
lpszHeaders
,
dwHeaderLength
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDHDR_FLAG_REPLACE
);
}
if
(
request
->
session
->
appInfo
->
proxy
&&
request
->
session
->
appInfo
->
proxy
[
0
])
{
WCHAR
*
url
=
HTTP_BuildProxyRequestUrl
(
request
);
...
...
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