diff options
Diffstat (limited to 'http/http_connection.hpp')
-rw-r--r-- | http/http_connection.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp index 39ac39e625..e5cd74f906 100644 --- a/http/http_connection.hpp +++ b/http/http_connection.hpp @@ -438,7 +438,8 @@ class Connection : else { res.jsonMode(); - res.body() = res.jsonValue.dump(2, ' ', true); + res.body() = res.jsonValue.dump( + 2, ' ', true, nlohmann::json::error_handler_t::replace); } } |