Skip to content

Commit

Permalink
ajax send
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLn committed May 6, 2014
1 parent 1388575 commit f15c697
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions demo/js/qiniu.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,16 +540,6 @@ function QiniuJsSDK() {
}
};
} else {
if (op.downtoken_url) {
var ajax = that.createAjax();
ajax.open('POST', op.downtoken_url, true);
console.log(op.downtoken_url, info.response);
// ajax.setRequestHeader('Content-Type', 'text/plain;charset=UTF-8');
// ajax.setRequestHeader('Authorization', 'UpToken ' + that.token);
ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
var key = that.parseJSON(info.response).key;
ajax.send('key=' + key + '&domain=' + op.domain);
}
if (FileUploaded_Handler) {
FileUploaded_Handler(up, file, info.response);
}
Expand Down

0 comments on commit f15c697

Please sign in to comment.