Skip to content

Commit fb4dc6b

Browse files
committed
Add 204 as a successful response
1 parent 8990c43 commit fb4dc6b

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
@@ -1065,7 +1065,8 @@
10651065
});
10661066
}
10671067
else {
1068-
options.complete(proxyXHR.status == 200 || proxyXHR.status == 201 ? false : (proxyXHR.statusText || 'error'), proxyXHR, options);
1068+
var successful = proxyXHR.status == 200 || proxyXHR.status == 201 || proxyXHR.status == 204;
1069+
options.complete(successful ? false : (proxyXHR.statusText || 'error'), proxyXHR, options);
10691070
// Mark done state
10701071
_complete = true;
10711072
}

0 commit comments

Comments
 (0)