jszip-utils icon indicating copy to clipboard operation
jszip-utils copied to clipboard

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

Open jancinert opened this issue 10 years ago • 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) {

jancinert avatar Feb 04 '16 23:02 jancinert