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

HTTP Status Code 201 (Created) should be handled as success #12

Open
jancinert opened this issue Feb 4, 2016 · 0 comments
Open

HTTP Status Code 201 (Created) should be handled as success #12

jancinert opened this issue Feb 4, 2016 · 0 comments

Comments

@jancinert
Copy link

We use dynamic image cache and in the case the cached thumbnail was just created the response status code is 201 instead of 200.

if (xhr.status === 200 || xhr.status === 0) {

->

if (xhr.status === 200 || xhr.status === 201 || xhr.status === 0) {

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

No branches or pull requests

1 participant