From f15c697ad2cc7e7bf5222b22ba1edf5d3c2166f2 Mon Sep 17 00:00:00 2001 From: SunLn Date: Tue, 6 May 2014 14:28:23 +0800 Subject: [PATCH] ajax send --- demo/js/qiniu.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/demo/js/qiniu.js b/demo/js/qiniu.js index 062ce0e8..6eabeaa9 100644 --- a/demo/js/qiniu.js +++ b/demo/js/qiniu.js @@ -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); }