diff options
Diffstat (limited to 'amalgamate')
-rw-r--r-- | amalgamate/crow_all.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/amalgamate/crow_all.h b/amalgamate/crow_all.h index d9f5624..30129f7 100644 --- a/amalgamate/crow_all.h +++ b/amalgamate/crow_all.h @@ -5967,8 +5967,11 @@ namespace crow 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::dump(json_value)) {} response(int code, std::string body) : body(std::move(body)), code(code) {} + response(const json::wvalue& json_value) : body(json::dump(json_value)) + { + set_header("Content-Type", "application/json"); + } response(response&& r) { |