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
muuntaja.core/decode-response-body will throw error on falsy values:
muuntaja.core/decode-response-body
(require '[muuntaja.core :as m]) (m/decode-response-body {:body "null" :headers {"Content-Type" "application/json"}}) (m/decode-response-body {:body "false" :headers {"Content-Type" "application/json"}}) (m/decode-response-body {:body "false" :headers {"Content-Type" "application/edn"}})
It's caused by the code here.
The text was updated successfully, but these errors were encountered:
Oh, that's not good. PR welcome.
Sorry, something went wrong.
Fix decode-response-body fails on falsy body content
2bae166
fixes metosin#134
Successfully merging a pull request may close this issue.
muuntaja.core/decode-response-body
will throw error on falsy values:It's caused by the code here.
The text was updated successfully, but these errors were encountered: