-
-
Notifications
You must be signed in to change notification settings - Fork 680
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
[v1.x] bad content-type: application/javascript - cannot handle the error #571
Comments
You will need a custom parser to handle XML and JavaScript content |
@Portur try with There probably won't be any new version in the v1.x. The codebase is changed a lot since then too. Not to mention the custom parsers (Plugins API) feature of v2 - #545. |
I would simply ignore any content-types that are not within my scope, which means ignoring application/javascript anyway. If there is a method to do that I'd use it today. The documentation states an error listener. Is this incorrect? form.once('error', console.error); |
@Portur yes if you are not using form.parse, otherwise check the first argument against null |
Hi,
Formidable throws when content-type is application/javascript OR application/XML.
Looking at the code I can see this is not supported
This specifically is using postman
Odd to throw, but I can't catch the error.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: