Closed NOBLES5E closed 6 years ago
2.0.0-alpha19
Such an api will incorrectly set the Content-Type to text/html
text/html
(api/GET "/owned-projects" [] :return (s/spec boolean?) true)
which prohibits muuntaja setting the Content-Type to application/transit+json later.
application/transit+json
POST does not have the same problem.
This is caused by not wrapping true in (http-response/ok true). Close.
true
(http-response/ok true)
Library Version(s)
2.0.0-alpha19
Problem
Such an api will incorrectly set the Content-Type to
text/html
which prohibits muuntaja setting the Content-Type to
application/transit+json
later.POST does not have the same problem.