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

normalize IE9 1223 response to 204 no content #190

Merged
merged 1 commit into from
Dec 29, 2017
Merged

normalize IE9 1223 response to 204 no content #190

merged 1 commit into from
Dec 29, 2017

Conversation

dagda1
Copy link

@dagda1 dagda1 commented Dec 28, 2017

PR to tackle #189 where IE9 sometimes returns status code 1223 instead of HTTP 204 No Content.

Usually when responding to a PUT request.

The PR changes fetch adapter to coerces HTTP 1223 into 204 No Content.

@@ -3,6 +3,7 @@
/* global describe, it */
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import { expect } from "chai";
import { fail, ok } from "assert";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls, rewrite test using chai. I think we don't need this dependence


return fetch(fetchApi)("url", "opts")
.then(()=> {
ok(true, "response status 1223 normalised");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rewrite to chai

ok(true, "response status 1223 normalised");
})
.catch(()=> {
fail("response status 1223 not normalized");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rewrite to chai

@dagda1
Copy link
Author

dagda1 commented Dec 29, 2017

@lexich I've addressed your comments

@lexich lexich merged commit f8eac71 into lexich:master Dec 29, 2017
@lexich
Copy link
Owner

lexich commented Dec 29, 2017

Thx @dagda1 Good work 👍

@dagda1 dagda1 deleted the ie9-no-content branch December 29, 2017 12:47
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.

2 participants