Merge pull request #2246 from zapek/jsonapi_mimetype_fix

Fix JSON API mime type
This commit is contained in:
defnax 2021-01-24 12:47:14 +01:00 committed by GitHub
commit 512b23fb12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ JsonApiServer::corsOptionsHeaders =
ss << jAns; \
std::string&& ans(ss.str()); \
auto headers = corsHeaders; \
headers.insert({ "Content-Type", "text/json" }); \
headers.insert({ "Content-Type", "application/json" }); \
headers.insert({ "Content-Length", std::to_string(ans.length()) }); \
session->close(RET_CODE, ans, headers)