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
4eb2807b
Commit
4eb2807b
authored
Sep 22, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Never use a proxy for connections to localhost.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
parent
d22e21f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
winhttp.c
dlls/winhttp/tests/winhttp.c
+13
-13
No files found.
dlls/winhttp/tests/winhttp.c
View file @
4eb2807b
...
...
@@ -2138,7 +2138,7 @@ static void test_basic_request(int port, const WCHAR *verb, const WCHAR *path)
DWORD
count
,
status
,
size
,
error
,
supported
,
first
,
target
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2206,7 +2206,7 @@ static void test_basic_authentication(int port)
DWORD
status
,
size
,
error
,
supported
,
first
,
target
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2343,7 +2343,7 @@ static void test_basic_authentication(int port)
/* credentials set with WinHttpSetCredentials take precedence over those set through options */
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2377,7 +2377,7 @@ static void test_basic_authentication(int port)
WinHttpCloseHandle
(
con
);
WinHttpCloseHandle
(
ses
);
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2419,7 +2419,7 @@ static void test_no_headers(int port)
DWORD
error
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2456,7 +2456,7 @@ static void test_no_content(int port)
DWORD
size
,
len
=
sizeof
(
buf
),
bytes_read
,
status
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2541,7 +2541,7 @@ static void test_head_request(int port)
DWORD
size
,
len
,
count
,
status
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2606,7 +2606,7 @@ static void test_not_modified(int port)
GetSystemTime
(
&
st
);
WinHttpTimeFromSystemTime
(
&
st
,
&
today
[
sizeof
(
ifmodifiedW
)
/
sizeof
(
WCHAR
)]);
session
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_
DEFAULT
_PROXY
,
session
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_
NO
_PROXY
,
WINHTTP_NO_PROXY_NAME
,
WINHTTP_NO_PROXY_BYPASS
,
0
);
ok
(
session
!=
NULL
,
"WinHttpOpen failed: %u
\n
"
,
GetLastError
());
...
...
@@ -2660,7 +2660,7 @@ static void test_bad_header( int port )
DWORD
index
,
len
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
()
);
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2692,7 +2692,7 @@ static void test_multiple_reads(int port)
DWORD
total_len
=
0
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2745,7 +2745,7 @@ static void test_cookies( int port )
DWORD
status
,
size
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
()
);
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2825,7 +2825,7 @@ static void test_cookies( int port )
WinHttpCloseHandle
(
con
);
WinHttpCloseHandle
(
ses
);
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
()
);
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
@@ -2859,7 +2859,7 @@ static void test_connection_info( int port )
DWORD
size
,
error
;
BOOL
ret
;
ses
=
WinHttpOpen
(
test_useragent
,
0
,
NULL
,
NULL
,
0
);
ses
=
WinHttpOpen
(
test_useragent
,
WINHTTP_ACCESS_TYPE_NO_PROXY
,
NULL
,
NULL
,
0
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
()
);
con
=
WinHttpConnect
(
ses
,
localhostW
,
port
,
0
);
...
...
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