You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't keep headers empty and send Content-Type: application/json since that will still result in the garbled output.
So far the only way to get out of this situation is to use stringBody instead of jsonBody and encode the JSON myself.
I believe the correct solution would be to check the Content-Type headers and use only the user-given one if there are multiple, instead of joining it and the jsonBody-given one into one string.
The text was updated successfully, but these errors were encountered:
I am developing a REPL-like application for the APL language. It uses UTF-8 characters and the server API requires me to specify the charset:
Otherwise I get output like:
(The last line shows the garbled output.)
I can't do
because
Http.jsonBody
adds its own Content-Type header and this gets sent:I can't keep
headers
empty and sendContent-Type: application/json
since that will still result in the garbled output.So far the only way to get out of this situation is to use
stringBody
instead ofjsonBody
and encode the JSON myself.I believe the correct solution would be to check the Content-Type headers and use only the user-given one if there are multiple, instead of joining it and the
jsonBody
-given one into one string.The text was updated successfully, but these errors were encountered: