-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
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
useFetch post
call inserts quotes when passed a string
#360
Comments
You need something like this? |
I'm afraid I can't help you. |
I've updated the sandbox. No, that link doesn't help, unfortunately because I'm not using FormData, I need to just pass a string. https://codesandbox.io/s/bold-stallman-xf6ko?file=/src/App.js |
This also breaks XML bodies, which are incorrectly formatted as strings rather than plain XML values. Sending the exact same body using native |
Doesn't this hook use the native |
Describe the bug
useFetch
post
call inserts quotes when passed a string.Please click this to easily reproduce the bug.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect a string to be passed into the body of the request as a string, not wrapped in quotes.
The text was updated successfully, but these errors were encountered: