We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does the code in prologue/core/response refer to ## Content-Type: application/json, but then actually return a Content-Type of text/json?
prologue/core/response
## Content-Type: application/json
text/json
func jsonResponse*(text: JsonNode, code = Http200, headers = newHttpHeaders(), version = HttpVer11): Response {.inline.} = ## Content-Type: application/json. result = initResponse(version, code, headers, body = $text) if unlikely(result.headers == nil): result.headers = newHttpHeaders() result.headers["Content-Type"] = "text/json"
The text was updated successfully, but these errors were encountered:
It should be application/json. I made a mistake. Thanks for reporting this issue. Feel free to make a pr.
application/json
Sorry, something went wrong.
done. #76
No branches or pull requests
Why does the code in
prologue/core/response
refer to## Content-Type: application/json
, but then actually return a Content-Type oftext/json
?The text was updated successfully, but these errors were encountered: