Rebase against 1b0d8428dfc13b0fa5ea7d576dfef7aaf8a8c927.

This commit is contained in:
Zebediah Figura
2024-02-19 16:23:40 -06:00
parent 5a1530d636
commit 96503e8822
6 changed files with 40 additions and 150 deletions

View File

@@ -1,25 +1,18 @@
From 303a7d54eca11f350f200bf3747646349a84536f Mon Sep 17 00:00:00 2001
From ce812bbd59547f6fb224da3351586912f35d2e33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Fri, 15 May 2015 21:18:37 +0200
Subject: [PATCH] wininet/tests: Test auth credential reusage with host
override.
---
dlls/wininet/tests/http.c | 93 +++++++++++++++++++++++++++++++++++++++
1 file changed, 93 insertions(+)
dlls/wininet/tests/http.c | 92 +++++++++++++++++++++++++++++++++++++++
1 file changed, 92 insertions(+)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index b06bd6c04d1..59689baf87e 100644
index 4c2c33ddd84..47236d5184d 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -2496,12 +2496,27 @@ static DWORD CALLBACK server_thread(LPVOID param)
{
send(c, okmsg, sizeof(okmsg)-1, 0);
}
+
if (strstr(buffer, "HEAD /test_large_content"))
{
char msg[sizeof(largemsg) + 16];
@@ -2899,6 +2899,20 @@ static DWORD CALLBACK server_thread(LPVOID param)
sprintf(msg, largemsg, content_length);
send(c, msg, strlen(msg), 0);
}
@@ -37,10 +30,10 @@ index b06bd6c04d1..59689baf87e 100644
+ else
+ send(c, noauthmsg, sizeof noauthmsg-1, 0);
+ }
shutdown(c, 2);
closesocket(c);
c = -1;
@@ -3200,6 +3215,84 @@ static void test_header_override(int port)
if (strstr(buffer, "GET /proxy.pac"))
{
char script[sizeof(proxy_pac) + 16];
@@ -3609,6 +3623,84 @@ static void test_header_override(int port)
InternetCloseHandle(req);
InternetCloseHandle(con);
InternetCloseHandle(ses);
@@ -126,5 +119,5 @@ index b06bd6c04d1..59689baf87e 100644
static void test_connection_closing(int port)
--
2.17.1
2.43.0