mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
http: do not assume body for CONNECT
This commit is contained in:
parent
f0e79bafd8
commit
998e68340e
1
http.c
1
http.c
@ -417,6 +417,7 @@ evhttp_response_needs_body(struct evhttp_request *req)
|
||||
return (req->response_code != HTTP_NOCONTENT &&
|
||||
req->response_code != HTTP_NOTMODIFIED &&
|
||||
(req->response_code < 100 || req->response_code >= 200) &&
|
||||
req->type != EVHTTP_REQ_CONNECT &&
|
||||
req->type != EVHTTP_REQ_HEAD);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user