Stuk/jszip-utils

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

Opened this issue · 0 comments

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