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
3a57711b
Commit
3a57711b
authored
Mar 24, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't strip Accept-Encoding headers from version 1.1 requests.
parent
404a51b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
http.c
dlls/wininet/http.c
+3
-4
No files found.
dlls/wininet/http.c
View file @
3a57711b
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wininet
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wininet
);
static
const
WCHAR
g_szHttp1_0
[]
=
{
'H'
,
'T'
,
'T'
,
'P'
,
'/'
,
'1'
,
'.'
,
'0'
,
0
};
static
const
WCHAR
g_szHttp1_1
[]
=
{
'H'
,
'T'
,
'T'
,
'P'
,
'/'
,
'1'
,
'.'
,
'1'
,
0
};
static
const
WCHAR
g_szHttp1_1
[]
=
{
'H'
,
'T'
,
'T'
,
'P'
,
'/'
,
'1'
,
'.'
,
'1'
,
0
};
static
const
WCHAR
g_szReferer
[]
=
{
'R'
,
'e'
,
'f'
,
'e'
,
'r'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
g_szReferer
[]
=
{
'R'
,
'e'
,
'f'
,
'e'
,
'r'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
g_szAccept
[]
=
{
'A'
,
'c'
,
'c'
,
'e'
,
'p'
,
't'
,
0
};
static
const
WCHAR
g_szAccept
[]
=
{
'A'
,
'c'
,
'c'
,
'e'
,
'p'
,
't'
,
0
};
...
@@ -3997,13 +3998,11 @@ static BOOL HTTP_DeleteCustomHeader(LPWININETHTTPREQW lpwhr, DWORD index)
...
@@ -3997,13 +3998,11 @@ static BOOL HTTP_DeleteCustomHeader(LPWININETHTTPREQW lpwhr, DWORD index)
*/
*/
static
BOOL
HTTP_VerifyValidHeader
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
field
)
static
BOOL
HTTP_VerifyValidHeader
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
field
)
{
{
BOOL
rc
=
TRUE
;
/* Accept-Encoding is stripped from HTTP/1.0 requests. It is invalid */
/* Accept-Encoding is stripped from HTTP/1.0 requests. It is invalid */
if
(
strcmpiW
(
field
,
szAccept_Encoding
)
==
0
)
if
(
!
strcmpW
(
lpwhr
->
lpszVersion
,
g_szHttp1_0
)
&&
!
strcmpiW
(
field
,
szAccept_Encoding
)
)
return
FALSE
;
return
FALSE
;
return
rc
;
return
TRUE
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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