-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Couldn't make multipart/form-data
requests with oak.
#36
Comments
Hey @c0per 👋 Hmm sorry multipart form data isn't working out 😅 do you have a simple oak server example code that you can share which can be used to test against for debugging this? |
|
I took some time into it. I made a pr #37 to fix this. superagent has 2 implementations: One for browser, one for nodejs. This project uses The browser version depends on XHR to handle form-data. And in xhrSham.js, form-data is stringified, so fetch doesn't process it the right way. The fix is to pass FormData directly to fetch. Fetch is able to handle form-data by itself. |
Released in https://github.com/asos-craigmorten/superdeno/releases/tag/4.6.1 - thanks for your contribution 😄 |
Issue
Setup:
Details
I'm using oak server. I tried the following code to test a
multipart/form-data
endpoint, didn't seem to work.Both
superoak
andsuperdeno
seemed not to work properly.I can only receive an empty body
text/plain
request.I've also tried using
superagent
with jspm. Still not working. Maybe its because nodejs package having some bugs on deno by jspm.The text was updated successfully, but these errors were encountered: