You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any change to stringify a body string would slow iron-request performance a bit because it would have to check if the string is just a string or a json stringified otherwise: this.$.xhr.body = JSON.stringify( {myvar:"foo"} );
would generate an invalid outcome.
I vote to this issue be resolved with some info about this behavior been add to the documentation.
When I use
<iron-ajax>
withcontent-type="application/json"
(andmethod="post"
) and then I do this:it just sends
foo
as the body of the request, but it should send"foo"
.A string like
"foo"
is a valid JSON object butfoo
is not!The text was updated successfully, but these errors were encountered: