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
31545206
Commit
31545206
authored
Jul 14, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jul 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use proxy server when redirecting.
parent
de12987d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
request.c
dlls/winhttp/request.c
+3
-4
session.c
dlls/winhttp/session.c
+0
-1
winhttp_private.h
dlls/winhttp/winhttp_private.h
+1
-0
No files found.
dlls/winhttp/request.c
View file @
31545206
...
...
@@ -1158,13 +1158,12 @@ static BOOL handle_redirect( request_t *request )
hostname
[
len
]
=
0
;
port
=
uc
.
nPort
?
uc
.
nPort
:
(
uc
.
nScheme
==
INTERNET_SCHEME_HTTPS
?
443
:
80
);
if
(
strcmpiW
(
connect
->
server
name
,
hostname
)
||
connect
->
serverport
!=
port
)
if
(
strcmpiW
(
connect
->
host
name
,
hostname
)
||
connect
->
serverport
!=
port
)
{
heap_free
(
connect
->
hostname
);
connect
->
hostname
=
hostname
;
heap_free
(
connect
->
servername
);
connect
->
servername
=
strdupW
(
connect
->
hostname
);
connect
->
serverport
=
connect
->
hostport
=
port
;
connect
->
hostport
=
port
;
if
(
!
(
ret
=
set_server_for_hostname
(
connect
,
hostname
,
port
)))
goto
end
;
netconn_close
(
&
request
->
netconn
);
if
(
!
(
ret
=
netconn_init
(
&
request
->
netconn
,
request
->
hdr
.
flags
&
WINHTTP_FLAG_SECURE
)))
goto
end
;
...
...
dlls/winhttp/session.c
View file @
31545206
...
...
@@ -316,7 +316,6 @@ static BOOL should_bypass_proxy(session_t *session, LPCWSTR server)
return
ret
;
}
static
BOOL
set_server_for_hostname
(
connect_t
*
connect
,
LPCWSTR
server
,
INTERNET_PORT
port
)
{
session_t
*
session
=
connect
->
session
;
...
...
dlls/winhttp/winhttp_private.h
View file @
31545206
...
...
@@ -221,6 +221,7 @@ BOOL set_cookies( request_t *, const WCHAR * );
BOOL
add_cookie_headers
(
request_t
*
);
BOOL
add_request_headers
(
request_t
*
,
LPCWSTR
,
DWORD
,
DWORD
);
void
delete_domain
(
domain_t
*
);
BOOL
set_server_for_hostname
(
connect_t
*
connect
,
LPCWSTR
server
,
INTERNET_PORT
port
);
static
inline
void
*
heap_alloc
(
SIZE_T
size
)
{
...
...
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