summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2018-02-13 17:43:02 +0300
committerAzat Khuzhin <a3at.mail@gmail.com>2018-02-20 12:12:19 +0300
commitcd57e38c3f77d0f6a718d9c1f2e3ead78a98bd06 (patch)
tree4e02065521362924ae9992453e0c597cc6edf6db /http.c
parent93913da1c4a528e0a832dc8dc163fa30f3e580d4 (diff)
downloadlibevent-cd57e38c3f77d0f6a718d9c1f2e3ead78a98bd06.tar.gz
http: remove message in case !Content-Length and Connection!=close
Since [1] GET can have body, and hence for every incomming connection it will print this error. [1] db483e3b002b33890fc88cadd77f6fd1fccad2d2 ("Allow bodies for GET/DELETE/OPTIONS/CONNECT") Noticed-by: BotoX (irc) Refs: #408
Diffstat (limited to 'http.c')
-rw-r--r--http.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/http.c b/http.c
index c0e7adfc..a49809a7 100644
--- a/http.c
+++ b/http.c
@@ -2132,10 +2132,6 @@ evhttp_get_body_length(struct evhttp_request *req)
req->ntoread = -1;
else if (content_length == NULL &&
evutil_ascii_strcasecmp(connection, "Close") != 0) {
- /* Bad combination, we don't know when it will end */
- event_warnx("%s: we got no content length, but the "
- "server wants to keep the connection open: %s.",
- __func__, connection);
req->ntoread = 0;
} else if (content_length == NULL) {
req->ntoread = -1;