Skip to content

Commit

Permalink
Add application/json content type for http json
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jul 20, 2024
1 parent d80e38c commit e9ca46d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3802,6 +3802,7 @@ R"x*x*x(<html>
string_response res{ http::status::ok, request.version() };
res.set(http::field::server, version_string);
res.set(http::field::date, server_date_string());
res.set(http::field::content_type, "application/json");
res.keep_alive(request.keep_alive());
res.body() = body;
res.prepare_payload();
Expand Down

0 comments on commit e9ca46d

Please sign in to comment.