Skip to content
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

Object parameters in JSON requests are improperly serialized #5

Closed
wimpyprogrammer opened this issue Sep 5, 2015 · 0 comments · Fixed by #6
Closed

Object parameters in JSON requests are improperly serialized #5

wimpyprogrammer opened this issue Sep 5, 2015 · 0 comments · Fixed by #6

Comments

@wimpyprogrammer
Copy link
Contributor

I encountered a problem when making a cross-domain POST in IE9 when one of the query parameters in an Object. The request looks like:

request
    .post('remote-url')
    .send({
        string: 'foo',
        number: 10,
        object: { someProp: true }
    })
    .use(superagent-legacyIESupport)

The resulting request looks like string=foo&number=10&object=%5Bobject%20Object%5D.

I'll submit a pull request with the changes I made to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant