Stuk / jszip-utils

Other
228 stars 193 forks source link

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

Open jancinert opened 8 years ago

jancinert commented 8 years ago

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) {