No content check (#823)

* No content check

* unit test for no content

* fixing merge conflict break

* oops during manual merge conflict
This commit is contained in:
Eric Lee authored and GitHub committed 2021-01-13 17:51:40 -05:00
1 parent 85b4abbf16
commit 8d9a477edb
2 files changed
+26 -1

No files matched your search

+1 -1
View File
@@ -5544,7 +5544,7 @@ inline bool ClientImpl::process_request(Stream &strm, const Request &req,
}
// Body
if (req.method != "HEAD" && req.method != "CONNECT") {
if ((res.status != 204) && req.method != "HEAD" && req.method != "CONNECT") {
auto out =
req.content_receiver_
? static_cast<ContentReceiverWithProgress>(