mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 04:44:25 -04:00
Merge pull request #2246 from zapek/jsonapi_mimetype_fix
Fix JSON API mime type
This commit is contained in:
commit
512b23fb12
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ JsonApiServer::corsOptionsHeaders =
|
||||||
ss << jAns; \
|
ss << jAns; \
|
||||||
std::string&& ans(ss.str()); \
|
std::string&& ans(ss.str()); \
|
||||||
auto headers = corsHeaders; \
|
auto headers = corsHeaders; \
|
||||||
headers.insert({ "Content-Type", "text/json" }); \
|
headers.insert({ "Content-Type", "application/json" }); \
|
||||||
headers.insert({ "Content-Length", std::to_string(ans.length()) }); \
|
headers.insert({ "Content-Length", std::to_string(ans.length()) }); \
|
||||||
session->close(RET_CODE, ans, headers)
|
session->close(RET_CODE, ans, headers)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue