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
cf43b160
Commit
cf43b160
authored
Jan 04, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Always send a Connection header set to "close" because that is what we…
wininet: Always send a Connection header set to "close" because that is what we expect for the moment.
parent
09dbb1b5
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 @
cf43b160
...
...
@@ -2227,6 +2227,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
INT
responseLen
;
BOOL
loop_next
;
INTERNET_ASYNC_RESULT
iar
;
static
const
WCHAR
szClose
[]
=
{
'C'
,
'l'
,
'o'
,
's'
,
'e'
,
0
};
TRACE
(
"--> %p
\n
"
,
lpwhr
);
...
...
@@ -2270,6 +2271,9 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDHDR_FLAG_REPLACE
);
}
HTTP_ProcessHeader
(
lpwhr
,
szConnection
,
szClose
,
HTTP_ADDHDR_FLAG_REQ
|
HTTP_ADDHDR_FLAG_REPLACE
);
/* if there's a proxy username and password, add it to the headers */
HTTP_AddProxyInfo
(
lpwhr
);
...
...
@@ -2786,17 +2790,10 @@ static BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR v
LPHTTPHEADERW
lphttpHdr
=
NULL
;
BOOL
bSuccess
=
FALSE
;
INT
index
=
-
1
;
static
const
WCHAR
szConnection
[]
=
{
'C'
,
'o'
,
'n'
,
'n'
,
'e'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
BOOL
request_only
=
dwModifier
&
HTTP_ADDHDR_FLAG_REQ
;
TRACE
(
"--> %s: %s - 0x%08x
\n
"
,
debugstr_w
(
field
),
debugstr_w
(
value
),
dwModifier
);
/* Don't let applications add Connection header to request */
if
(
strcmpW
(
szConnection
,
field
)
==
0
&&
(
dwModifier
&
HTTP_ADDHDR_FLAG_REQ
))
{
return
FALSE
;
}
/* REPLACE wins out over ADD */
if
(
dwModifier
&
HTTP_ADDHDR_FLAG_REPLACE
)
dwModifier
&=
~
HTTP_ADDHDR_FLAG_ADD
;
...
...
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