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

Ajax: wrong Content-Type when uploading FormData #1729

Closed
jachenry opened this issue May 24, 2016 · 2 comments
Closed

Ajax: wrong Content-Type when uploading FormData #1729

jachenry opened this issue May 24, 2016 · 2 comments

Comments

@jachenry
Copy link
Contributor

RxJS version:
5.0.0-beta.8

Code to reproduce:

Observable.ajax({
  url: ...,
  body: formData,
})

Expected behavior:
browser should be responsible for appending Content-Type of multipart/form-data; charset=utf-8; boundary=...

Actual behavior:
Content-Type is explicitly set in AjaxObservable

    if (!('Content-Type' in headers)) {
      headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
    }
jachenry pushed a commit to LevelBits/rxjs that referenced this issue Jun 7, 2016
allow undefined content-type header if body is formdata

references GitHub issue ReactiveX#1729
benlesh pushed a commit that referenced this issue Jun 27, 2016
allow undefined content-type header if body is formdata

references GitHub issue #1729
@kwonoj
Copy link
Member

kwonoj commented Jul 12, 2016

Closing this issue by #1746 is checked in.

@kwonoj kwonoj closed this as completed Jul 12, 2016
@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants