nghttpx: Use http2::expect_response_body()
This commit is contained in:
parent
6824319fe6
commit
196d7da53f
|
@ -914,8 +914,7 @@ size_t Downstream::get_response_datalen() const { return response_datalen_; }
|
|||
void Downstream::reset_response_datalen() { response_datalen_ = 0; }
|
||||
|
||||
bool Downstream::expect_response_body() const {
|
||||
return request_method_ != "HEAD" && response_http_status_ / 100 != 1 &&
|
||||
response_http_status_ != 304 && response_http_status_ != 204;
|
||||
return http2::expect_response_body(request_method_, response_http_status_);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
|
Loading…
Reference in New Issue