You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assertion fails, body is empty. Client closes connection right after parsing headers. It does not wait for body. Everything is ok if Content-Length is set. Bug can be reproduced using both 0.7.27 and 0.7.26. Just in case, section 5 in https://tools.ietf.org/html/rfc2616#section-4.4
The text was updated successfully, but these errors were encountered:
If there is a "Connection: Close" header, client does not receive body.
Here is the test case:
shared static this()
{
requestHTTP("http://127.0.0.1:80",
(scope req) {},
(scope res) {
assert(res.bodyReader.readAllUTF8() == "qwerty");
}
);
listenTCP(80, (TCPConnection c){
c.write("HTTP/1.1 200 OK\r\nConnection: Close\r\n\r\nqwerty");
}, "127.0.0.1");
}
Assertion fails, body is empty. Client closes connection right after parsing headers. It does not wait for body. Everything is ok if Content-Length is set. Bug can be reproduced using both 0.7.27 and 0.7.26. Just in case, section 5 in https://tools.ietf.org/html/rfc2616#section-4.4
The text was updated successfully, but these errors were encountered: