Skip to content

Commit

Permalink
fix: xhr-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fupengl committed Feb 18, 2021
1 parent 76ff404 commit b07db09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bom/xhr-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function upload<T>(option: UploadRequestOption<T>) {
};

xhr.onload = function onload() {
if (((xhr.status / 100) | 0) === 2) {
if (((xhr.status / 100) | 0) !== 2) {
return option.onError?.(getError(option, xhr), getBody(xhr));
}

Expand Down

0 comments on commit b07db09

Please sign in to comment.