aboutsummaryrefslogtreecommitdiffstats
path: root/http_response.h
diff options
context:
space:
mode:
Diffstat (limited to 'http_response.h')
-rw-r--r--http_response.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_response.h b/http_response.h
index b12c8a5..cf8e2ca 100644
--- a/http_response.h
+++ b/http_response.h
@@ -15,7 +15,7 @@ namespace flask
explicit response(int code) : code(code) {}
response(std::string body) : body(std::move(body)) {}
response(json::wvalue&& json_value) : json_value(std::move(json_value)) {}
- response(const json::wvalue& json_value) : body(json::encode(json_value)) {}
+ response(const json::wvalue& json_value) : body(json::dump(json_value)) {}
response(int code, std::string body) : body(std::move(body)), code(code) {}
response(response&& r)
{