nghttpx: Use http2::expect_response_body()

This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-07 15:50:52 +09:00
parent 6824319fe6
commit 196d7da53f
1 changed files with 1 additions and 2 deletions

View File

@ -914,8 +914,7 @@ size_t Downstream::get_response_datalen() const { return response_datalen_; }
void Downstream::reset_response_datalen() { response_datalen_ = 0; } void Downstream::reset_response_datalen() { response_datalen_ = 0; }
bool Downstream::expect_response_body() const { bool Downstream::expect_response_body() const {
return request_method_ != "HEAD" && response_http_status_ / 100 != 1 && return http2::expect_response_body(request_method_, response_http_status_);
response_http_status_ != 304 && response_http_status_ != 204;
} }
namespace { namespace {