mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 01:14:47 +00:00
wininet/tests: Don't send two HTTP responses for a single request in server_thread.
This commit is contained in:
parent
1df5309a82
commit
2d8850365b
|
@ -2407,7 +2407,7 @@ static DWORD CALLBACK server_thread(LPVOID param)
|
||||||
"Content-Length: 10\r\n\r\n0123456789";
|
"Content-Length: 10\r\n\r\n0123456789";
|
||||||
send(c, nocontentmsg, sizeof(nocontentmsg)-1, 0);
|
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"
|
static const char nocontentmsg[] = "HTTP/1.1 204 No Content\r\nConnection: close\r\n\r\n"
|
||||||
"0123456789";
|
"0123456789";
|
||||||
|
|
Loading…
Reference in a new issue