Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Dec 31, 2020
1 parent a9f5f86 commit 242706e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -4235,7 +4235,10 @@ inline bool Server::write_response_core(Stream &strm, bool close_connection,
bool need_apply_ranges) {
assert(res.status != -1);

if (400 <= res.status && error_handler_) { error_handler_(req, res); }
if (400 <= res.status && error_handler_) {
error_handler_(req, res);
need_apply_ranges = true;
}

std::string content_type;
std::string boundary;
Expand Down

0 comments on commit 242706e

Please sign in to comment.