mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Fix #591
This commit is contained in:
parent
110393eadb
commit
3e906a9b8c
2 changed files with 38 additions and 1 deletions
|
@ -4518,7 +4518,7 @@ inline bool ClientImpl::send(const Request &req, Response &res) {
|
|||
return handle_request(strm, req, res, close_connection);
|
||||
});
|
||||
|
||||
if (close_connection) { stop(); }
|
||||
if (close_connection || !ret) { stop(); }
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue