-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Ajax requests do not handle ampersand correctly #2389
Comments
I think the body key/value pairs need to be encoded with |
ericponto
pushed a commit
to ericponto/rxjs
that referenced
this issue
Feb 21, 2017
The contentType 'application/x-www-form-urlencoded' was using `encodeURI` but should be using `encodeURIComponent` on the request body. closes ReactiveX#2389
I am having the same issue can we approve the pull request? |
ericponto
pushed a commit
to ericponto/rxjs
that referenced
this issue
Mar 30, 2018
The contentType 'application/x-www-form-urlencoded' was using encodeURI but should be using closes ReactiveX#2389
This should be addressed with #3502 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RxJS version: 5.1.0
Code to reproduce:
Rx.ajax.post('my-api',{ url: 'bla&foo=bar' })
Expected behavior:
Expected to send post request with a single parameter (url)
Actual behavior:
Sends post request with two parameters: url and foo
Additional information:
The problem could be resolved by setting
Content-Type
toapplication/json
manually on each request, but presumably these requests should work out of the box.The text was updated successfully, but these errors were encountered: