Skip to content

Commit

Permalink
Merge pull request #878 from ygj6/fix874
Browse files Browse the repository at this point in the history
fixed issue #874
  • Loading branch information
yuangongji authored Jul 3, 2020
2 parents 808924e + 5425591 commit 906303a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/FileUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,7 @@ export default function __identity(fileUploaderOptions, $rootScope, $http, $wind
var response = this._transformResponse(xhr.response, headers);
this._onCancelItem(item, response, xhr.status, headers);
this._onCompleteItem(item, response, xhr.status, headers);
};

xhr.timeout = item.timeout || 0;
};

xhr.ontimeout = (e) => {
var headers = this._parseHeaders(xhr.getAllResponseHeaders());
Expand All @@ -524,6 +522,7 @@ export default function __identity(fileUploaderOptions, $rootScope, $http, $wind

xhr.open(item.method, item.url, true);

xhr.timeout = item.timeout || 0;
xhr.withCredentials = item.withCredentials;

forEach(item.headers, (value, name) => {
Expand Down

0 comments on commit 906303a

Please sign in to comment.