Module: wine Branch: master Commit: bb89483397985e142304a177090d6ceb928a8fb2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bb89483397985e142304a17709...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Dec 9 12:50:41 2014 +0100
winhttp/tests: Close the connection immediately after authentication.
---
dlls/winhttp/tests/winhttp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c index 7d0167b..446cba4 100644 --- a/dlls/winhttp/tests/winhttp.c +++ b/dlls/winhttp/tests/winhttp.c @@ -1812,6 +1812,12 @@ static const char noauthmsg[] = "WWW-Authenticate: Basic realm="placebo"\r\n" "\r\n";
+static const char okauthmsg[] = +"HTTP/1.1 200 OK\r\n" +"Server: winetest\r\n" +"Connection: close\r\n" +"\r\n"; + struct server_info { HANDLE event; @@ -1873,7 +1879,7 @@ static DWORD CALLBACK server_thread(LPVOID param) if (strstr(buffer, "/auth")) { if (strstr(buffer, "Authorization: Basic dXNlcjpwd2Q=")) - send(c, okmsg, sizeof okmsg - 1, 0); + send(c, okauthmsg, sizeof okauthmsg - 1, 0); else send(c, noauthmsg, sizeof noauthmsg - 1, 0); }