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

fix(generic): coerce undefined data into null #1

Merged
merged 1 commit into from
Jun 26, 2015
Merged

fix(generic): coerce undefined data into null #1

merged 1 commit into from
Jun 26, 2015

Conversation

cueedee
Copy link
Contributor

@cueedee cueedee commented Jun 25, 2015

This works around an IE10 bug exposed on DELETE requests, that would otherwise include a Content-length: 9 header ("undefined".length === 9) but no body content on the request.

On a keep-alive connection this is sure to break any immediately following request.

The issue is also found and discussed in angular/angular.js#12141

Works around an IE bug exposed on DELETE requests.
Qwerios added a commit that referenced this pull request Jun 26, 2015
fix(generic): coerce undefined `data` into `null`
@Qwerios Qwerios merged commit c0d3b4f into Qwerios:master Jun 26, 2015
@Qwerios
Copy link
Owner

Qwerios commented Jun 26, 2015

Not using a lot of IE10 here so would not have caught that. Thanks

@Qwerios
Copy link
Owner

Qwerios commented Jun 26, 2015

Published version 0.1.20 to npmjs with this fix

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 this pull request may close these issues.

None yet

2 participants