winhttp/tests: Fix test failures.

These were introduced with the web server upgrade.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2016-03-17 10:13:59 +01:00 committed by Alexandre Julliard
parent 1eac54ef7d
commit 05a13fb155
1 changed files with 6 additions and 4 deletions

View File

@ -1004,11 +1004,13 @@ static void test_secure_connection(void)
ok(ret, "failed to send request %u\n", GetLastError()); ok(ret, "failed to send request %u\n", GetLastError());
ret = WinHttpReceiveResponse(req, NULL); ret = WinHttpReceiveResponse(req, NULL);
ok(!ret || proxy_active(), "succeeded unexpectedly\n"); ok(ret, "failed to receive response %u\n", GetLastError());
size = 0; status = 0xdeadbeef;
ret = WinHttpQueryHeaders(req, WINHTTP_QUERY_RAW_HEADERS_CRLF, NULL, NULL, &size, NULL); size = sizeof(status);
ok(!ret, "succeeded unexpectedly\n"); ret = WinHttpQueryHeaders(req, WINHTTP_QUERY_STATUS_CODE|WINHTTP_QUERY_FLAG_NUMBER, NULL, &status, &size, NULL);
ok(ret, "header query failed %u\n", GetLastError());
ok(status == HTTP_STATUS_BAD_REQUEST, "got %u\n", status);
WinHttpCloseHandle(req); WinHttpCloseHandle(req);