Skip to content

Commit

Permalink
Add content-type header.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgiszczak committed Nov 2, 2017
1 parent badbc68 commit 7a05597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/http_plugin/http_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ namespace eos {
if (my->access_control_allow_credentials) {
con->append_header("Access-Control-Allow-Credentials", "true");
}
con->append_header("Content-type", "application/json");
auto body = con->get_request_body();
auto resource = con->get_uri()->get_resource();
auto handler_itr = my->url_handlers.find(resource);
Expand Down

0 comments on commit 7a05597

Please sign in to comment.