mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-20 11:29:38 +00:00
Fix #820
This commit is contained in:
1 parent
a9f5f8683f
commit
242706ea34
1 file changed
+4
-1
@@ -4235,7 +4235,10 @@ inline bool Server::write_response_core(Stream &strm, bool close_connection,
|
|||||||
bool need_apply_ranges) {
|
bool need_apply_ranges) {
|
||||||
assert(res.status != -1);
|
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 content_type;
|
||||||
std::string boundary;
|
std::string boundary;
|
||||||
|
|||||||
Reference in new issue
Block a user