Skip to content

Commit

Permalink
Merge pull request cloudreve#143 from HFO4/dev
Browse files Browse the repository at this point in the history
Fix: broken getUpToken in qiniu policy
  • Loading branch information
HFO4 authored Mar 16, 2019
2 parents 51f8be8 + 560e455 commit 9d8646c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/uploader/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ function QiniuJsSDK() {
var getTimestamp = function(time) {
return Math.ceil(time.getTime()/1000);
};
var serverTime = getTimestamp(new Date(result.getResponseHeader("date")));
var serverTime = getTimestamp(new Date(ajax.getResponseHeader("date")));
var clientTime = getTimestamp(new Date());
that.tokenInfo = {
serverDelay: clientTime - serverTime,
Expand Down

0 comments on commit 9d8646c

Please sign in to comment.