Skip to content

Commit

Permalink
Merge pull request #518 from andylwelch/patch-1
Browse files Browse the repository at this point in the history
Allow other 200 range success response
  • Loading branch information
JiHong88 authored Oct 10, 2020
2 parents b3e0617 + 6216b28 commit fb95c4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/modules/fileManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

_callBackUpload: function (xmlHttp, callBack, errorCallBack) {
if (xmlHttp.readyState === 4) {
if (xmlHttp.status === 200) {
if (xmlHttp.status >= 200 && xmlHttp.status < 300) {
try {
callBack(xmlHttp);
} catch (e) {
Expand Down Expand Up @@ -314,4 +314,4 @@
}

return fileManager;
}));
}));

0 comments on commit fb95c4a

Please sign in to comment.