Skip to content

Commit

Permalink
Merge pull request 23#236 from vsivsi/201_only
Browse files Browse the repository at this point in the history
Revert response codes 202-2XX back to being negative responses
  • Loading branch information
steffentchr committed Jul 14, 2015
2 parents c300483 + 5df380f commit fca3080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resumable.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,8 @@
// Status is really 'OPENED', 'HEADERS_RECEIVED' or 'LOADING' - meaning that stuff is happening
return('uploading');
} else {
if($.xhr.status >= 200 && $.xhr.status < 300) {
// HTTP 2XX, perfect
if($.xhr.status == 200 || $.xhr.status == 201) {
// HTTP 200 or 201 (created) perfect
return('success');
} else if($h.contains($.getOpt('permanentErrors'), $.xhr.status) || $.retries >= $.getOpt('maxChunkRetries')) {
// HTTP 415/500/501, permanent error
Expand Down

0 comments on commit fca3080

Please sign in to comment.