mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
wininet: Fix tests when running behind a proxy server.
This commit is contained in:
parent
d67a9d92ea
commit
9fd8462add
@ -1788,7 +1788,12 @@ static void test_proxy_indirect(int port)
|
||||
|
||||
sz = sizeof buffer;
|
||||
r = HttpQueryInfo(hr, HTTP_QUERY_PROXY_AUTHENTICATE, buffer, &sz, NULL);
|
||||
ok(r, "HttpQueryInfo failed\n");
|
||||
ok(r || GetLastError() == ERROR_HTTP_HEADER_NOT_FOUND, "HttpQueryInfo failed: %d\n", GetLastError());
|
||||
if (!r)
|
||||
{
|
||||
skip("missing proxy header, not testing remaining proxy headers\n");
|
||||
goto out;
|
||||
}
|
||||
ok(!strcmp(buffer, "Basic realm=\"placebo\""), "proxy auth info wrong\n");
|
||||
|
||||
sz = sizeof buffer;
|
||||
@ -1821,6 +1826,7 @@ static void test_proxy_indirect(int port)
|
||||
ok(GetLastError() == ERROR_HTTP_HEADER_NOT_FOUND, "HttpQueryInfo should fail\n");
|
||||
ok(r == FALSE, "HttpQueryInfo failed\n");
|
||||
|
||||
out:
|
||||
InternetCloseHandle(hr);
|
||||
InternetCloseHandle(hc);
|
||||
InternetCloseHandle(hi);
|
||||
|
Loading…
Reference in New Issue
Block a user