Skip to content

Commit 242706e

Browse files
committed
Fix #820
1 parent a9f5f86 commit 242706e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

httplib.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4235,7 +4235,10 @@ inline bool Server::write_response_core(Stream &strm, bool close_connection,
42354235
bool need_apply_ranges) {
42364236
assert(res.status != -1);
42374237

4238-
if (400 <= res.status && error_handler_) { error_handler_(req, res); }
4238+
if (400 <= res.status && error_handler_) {
4239+
error_handler_(req, res);
4240+
need_apply_ranges = true;
4241+
}
42394242

42404243
std::string content_type;
42414244
std::string boundary;

0 commit comments

Comments
 (0)