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
a1ebffb4
Commit
a1ebffb4
authored
Apr 22, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Remove custom content-length/type headers from redirects.
parent
34480aef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
http.c
dlls/wininet/http.c
+11
-0
No files found.
dlls/wininet/http.c
View file @
a1ebffb4
...
...
@@ -2861,10 +2861,13 @@ static BOOL HTTP_GetRequestURL(WININETHTTPREQW *req, LPWSTR buf)
*/
static
BOOL
HTTP_HandleRedirect
(
LPWININETHTTPREQW
lpwhr
,
LPCWSTR
lpszUrl
)
{
static
const
WCHAR
szContentType
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'e'
,
'n'
,
't'
,
'-'
,
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
szContentLength
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'e'
,
'n'
,
't'
,
'-'
,
'L'
,
'e'
,
'n'
,
'g'
,
't'
,
'h'
,
0
};
LPWININETHTTPSESSIONW
lpwhs
=
lpwhr
->
lpHttpSession
;
LPWININETAPPINFOW
hIC
=
lpwhs
->
lpAppInfo
;
BOOL
using_proxy
=
hIC
->
lpszProxy
&&
hIC
->
lpszProxy
[
0
];
WCHAR
path
[
INTERNET_MAX_URL_LENGTH
];
int
index
;
if
(
lpszUrl
[
0
]
==
'/'
)
{
...
...
@@ -3051,6 +3054,14 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl)
}
}
/* Remove custom content-type/length headers on redirects. */
index
=
HTTP_GetCustomHeaderIndex
(
lpwhr
,
szContentType
,
0
,
TRUE
);
if
(
0
<=
index
)
HTTP_DeleteCustomHeader
(
lpwhr
,
index
);
index
=
HTTP_GetCustomHeaderIndex
(
lpwhr
,
szContentLength
,
0
,
TRUE
);
if
(
0
<=
index
)
HTTP_DeleteCustomHeader
(
lpwhr
,
index
);
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