-
Notifications
You must be signed in to change notification settings - Fork 81
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
iron-form body data malformed #7
Comments
try using <form content-type="application/json" /> described here: https://elements.polymer-project.org/elements/iron-form |
We've had a fix recently that sents the |
This is still an issue in 1.0.4 and I believe also in the master branch— I think the relevant block of code is below, the logic doesn't make a lot of sense to me:
What I'm reading is that the content type is indeed sent correctly but that the form will send a serialized JSON body ( |
I think it is a type in the documentation, which kolarski stated: I use "content-type" instead oof the stated "contentType" and works now. |
POST requests using iron-form and sending JSON as request body, is misinterpreted by requesting URL. My test shows a simple nodejs server that accepts POST requests and prints out body using body-parser API. I'm using Polymer 1.0 with iron-form inside a custom component.
The request body json data:
The text was updated successfully, but these errors were encountered: