Fork me on GitHub
#yada
<
2017-10-20
>
nha22:10:11

By the way, when the request body is malformed it seems the response body returned is always text/plain regardless of the accept header

{:status 400, :headers {"content-length" "62", "content-type" "text/plain;charset=utf-8"}, :body "Malformed body\r\n\r\n{:status 400, :error {:bar disallowed-key}}\n"}
That's too bad - it is that close to be machine readable! Is it worth opening an issue?

nha22:10:59

Another possible issue: an invalid accept header like this:

"application/transit+json;, application/json;q=0.6"
causes a NPE