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
With v0.6.1 itty-fetcher does not appear to work with form actions. POSTing setting value as JSON for some inexplicable reason.
v0.6.1
POST
const data = new FormData(); data.set("file", new File(["hi"], "foo.txt")); fetcher() .post("/preview?/upload", data) .then(console.log) .catch(console.error);
Fails with Actions expect form-encoded data (received application/json)
Actions expect form-encoded data (received application/json)
The text was updated successfully, but these errors were encountered:
Believe this is because the content-type header is set to application/json
Sorry, something went wrong.
Wait, did you try 0.7.0 after my changes?
Why would the Blob change affect the form content type?
5e420ec
No branches or pull requests
With
v0.6.1
itty-fetcher does not appear to work with form actions.POST
ing setting value as JSON for some inexplicable reason.Fails with
Actions expect form-encoded data (received application/json)
The text was updated successfully, but these errors were encountered: