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
5b173cb4
Commit
5b173cb4
authored
May 08, 2011
by
Karsten Elfenbein
Committed by
Alexandre Julliard
May 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Follow 307 temporary redirect.
parent
dad59138
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
http.c
dlls/wininet/http.c
+5
-1
No files found.
dlls/wininet/http.c
View file @
5b173cb4
...
@@ -4415,6 +4415,7 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
...
@@ -4415,6 +4415,7 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
dwBufferSize
=
sizeof
(
szNewLocation
);
dwBufferSize
=
sizeof
(
szNewLocation
);
if
((
dwStatusCode
==
HTTP_STATUS_REDIRECT
||
if
((
dwStatusCode
==
HTTP_STATUS_REDIRECT
||
dwStatusCode
==
HTTP_STATUS_MOVED
||
dwStatusCode
==
HTTP_STATUS_MOVED
||
dwStatusCode
==
HTTP_STATUS_REDIRECT_KEEP_VERB
||
dwStatusCode
==
HTTP_STATUS_REDIRECT_METHOD
)
&&
dwStatusCode
==
HTTP_STATUS_REDIRECT_METHOD
)
&&
HTTP_HttpQueryInfoW
(
request
,
HTTP_QUERY_LOCATION
,
szNewLocation
,
&
dwBufferSize
,
NULL
)
==
ERROR_SUCCESS
)
HTTP_HttpQueryInfoW
(
request
,
HTTP_QUERY_LOCATION
,
szNewLocation
,
&
dwBufferSize
,
NULL
)
==
ERROR_SUCCESS
)
{
{
...
@@ -4574,7 +4575,10 @@ static DWORD HTTP_HttpEndRequestW(http_request_t *request, DWORD dwFlags, DWORD_
...
@@ -4574,7 +4575,10 @@ static DWORD HTTP_HttpEndRequestW(http_request_t *request, DWORD dwFlags, DWORD_
{
{
DWORD
dwCode
,
dwCodeLength
=
sizeof
(
DWORD
);
DWORD
dwCode
,
dwCodeLength
=
sizeof
(
DWORD
);
if
(
HTTP_HttpQueryInfoW
(
request
,
HTTP_QUERY_FLAG_NUMBER
|
HTTP_QUERY_STATUS_CODE
,
&
dwCode
,
&
dwCodeLength
,
NULL
)
==
ERROR_SUCCESS
if
(
HTTP_HttpQueryInfoW
(
request
,
HTTP_QUERY_FLAG_NUMBER
|
HTTP_QUERY_STATUS_CODE
,
&
dwCode
,
&
dwCodeLength
,
NULL
)
==
ERROR_SUCCESS
&&
(
dwCode
==
302
||
dwCode
==
301
||
dwCode
==
303
))
&&
(
dwCode
==
HTTP_STATUS_REDIRECT
||
dwCode
==
HTTP_STATUS_MOVED
||
dwCode
==
HTTP_STATUS_REDIRECT_METHOD
||
dwCode
==
HTTP_STATUS_REDIRECT_KEEP_VERB
))
{
{
WCHAR
*
new_url
,
szNewLocation
[
INTERNET_MAX_URL_LENGTH
];
WCHAR
*
new_url
,
szNewLocation
[
INTERNET_MAX_URL_LENGTH
];
dwBufferSize
=
sizeof
(
szNewLocation
);
dwBufferSize
=
sizeof
(
szNewLocation
);
...
...
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