Module: wine Branch: master Commit: 2d8850365b51c4bf7e7d085ef42c3264bc710d8e URL: https://gitlab.winehq.org/wine/wine/-/commit/2d8850365b51c4bf7e7d085ef42c326...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Sep 15 17:38:06 2022 +0200
wininet/tests: Don't send two HTTP responses for a single request in server_thread.
---
dlls/wininet/tests/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index aadedd27f24..8fcb9df293a 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -2407,7 +2407,7 @@ static DWORD CALLBACK server_thread(LPVOID param) "Content-Length: 10\r\n\r\n0123456789"; send(c, nocontentmsg, sizeof(nocontentmsg)-1, 0); } - if (strstr(buffer, "GET /test_no_content")) + else if (strstr(buffer, "GET /test_no_content")) { static const char nocontentmsg[] = "HTTP/1.1 204 No Content\r\nConnection: close\r\n\r\n" "0123456789";