Allow body in GET requests.

GitOrigin-RevId: 3aca646ed271f1f1d4188dc1cde6c1044e03954b
This commit is contained in:
levlam 2018-02-14 16:14:11 +03:00
parent ee87b75e01
commit 08620ba1b7

View File

@ -83,7 +83,7 @@ Result<size_t> HttpReader::read_next(HttpQuery *query) {
if (result.is_error() || result.ok() != 0) {
return result;
}
if (query_->type_ == HttpQuery::Type::GET) {
if (transfer_encoding_.empty() && content_length_ == 0) {
break;
}