mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
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:
parent
85b4abbf16
commit
8d9a477edb
2 changed files with 26 additions and 1 deletions
|
@ -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>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue