Skip to content

Commit 9930079

Browse files
committed
Merge branch 'add-204-as-success-response' of github.com:remind101/FileAPI into remind101-add-204-as-success-response
2 parents 0d60708 + fb4dc6b commit 9930079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/FileAPI.core.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,8 @@
10801080
});
10811081
}
10821082
else {
1083-
options.complete(proxyXHR.status == 200 || proxyXHR.status == 201 ? false : (proxyXHR.statusText || 'error'), proxyXHR, options);
1083+
var successful = proxyXHR.status == 200 || proxyXHR.status == 201 || proxyXHR.status == 204;
1084+
options.complete(successful ? false : (proxyXHR.statusText || 'error'), proxyXHR, options);
10841085
// Mark done state
10851086
_complete = true;
10861087
}

0 commit comments

Comments
 (0)