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
f3455da6
Commit
f3455da6
authored
Oct 24, 2014
by
Daniel Lehman
Committed by
Alexandre Julliard
Oct 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Remove custom port handling in HTTP_HandleRedirect.
parent
4bb80afe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
http.c
dlls/wininet/http.c
+6
-12
No files found.
dlls/wininet/http.c
View file @
f3455da6
...
...
@@ -4173,20 +4173,9 @@ static DWORD HTTP_HandleRedirect(http_request_t *request, LPCWSTR lpszUrl)
heap_free
(
session
->
hostName
);
if
(
custom_port
)
{
int
len
;
static
const
WCHAR
fmt
[]
=
{
'%'
,
's'
,
':'
,
'%'
,
'u'
,
0
};
len
=
lstrlenW
(
hostName
);
len
+=
7
;
/* 5 for strlen("65535") + 1 for ":" + 1 for '\0' */
session
->
hostName
=
heap_alloc
(
len
*
sizeof
(
WCHAR
));
sprintfW
(
session
->
hostName
,
fmt
,
hostName
,
urlComponents
.
nPort
);
}
else
session
->
hostName
=
heap_strdupW
(
hostName
);
session
->
hostName
=
heap_strdupW
(
hostName
);
session
->
hostPort
=
urlComponents
.
nPort
;
HTTP_ProcessHeader
(
request
,
hostW
,
session
->
hostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDREQ_FLAG_REPLACE
|
HTTP_ADDHDR_FLAG_REQ
);
heap_free
(
session
->
userName
);
session
->
userName
=
NULL
;
if
(
userName
[
0
])
...
...
@@ -4201,6 +4190,11 @@ static DWORD HTTP_HandleRedirect(http_request_t *request, LPCWSTR lpszUrl)
server_release
(
request
->
server
);
request
->
server
=
new_server
;
}
if
(
custom_port
)
HTTP_ProcessHeader
(
request
,
hostW
,
request
->
server
->
host_port
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDREQ_FLAG_REPLACE
|
HTTP_ADDHDR_FLAG_REQ
);
else
HTTP_ProcessHeader
(
request
,
hostW
,
request
->
server
->
name
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDREQ_FLAG_REPLACE
|
HTTP_ADDHDR_FLAG_REQ
);
}
heap_free
(
request
->
path
);
request
->
path
=
NULL
;
...
...
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