Skip to content

Commit

Permalink
Merge pull request qiniu#28 from qiniupd/change_upload_host_again
Browse files Browse the repository at this point in the history
upload.qiniu.com -> up.qiniu.com
  • Loading branch information
SunLn committed Aug 19, 2014
2 parents 9e7df21 + 1bcbec7 commit fc7d0b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/qiniu.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function QiniuJsSDK() {
};

plupload.extend(option, op, {
url: 'http://upload.qiniu.com',
url: 'http://up.qiniu.com',
multipart_params: {
token: ''
}
Expand Down Expand Up @@ -362,7 +362,7 @@ function QiniuJsSDK() {


up.setOption({
'url': 'http://upload.qiniu.com/',
'url': 'http://up.qiniu.com/',
'multipart': true,
'chunk_size': undefined,
'multipart_params': multipart_params_obj
Expand All @@ -389,7 +389,7 @@ function QiniuJsSDK() {
}
}
up.setOption({
'url': 'http://upload.qiniu.com/mkblk/' + blockSize,
'url': 'http://up.qiniu.com/mkblk/' + blockSize,
'multipart': false,
'chunk_size': chunk_size,
'headers': {
Expand All @@ -412,7 +412,7 @@ function QiniuJsSDK() {
chunk_size = chunk_size || (up.settings && up.settings.chunk_size);
if (leftSize < chunk_size) {
up.setOption({
'url': 'http://upload.qiniu.com/mkblk/' + leftSize
'url': 'http://up.qiniu.com/mkblk/' + leftSize
});
}
localStorage.setItem(file.name, JSON.stringify({
Expand Down Expand Up @@ -568,7 +568,7 @@ function QiniuJsSDK() {
}
}

var url = 'http://upload.qiniu.com/mkfile/' + file.size + key + x_vars_url;
var url = 'http://up.qiniu.com/mkfile/' + file.size + key + x_vars_url;
var ajax = that.createAjax();
ajax.open('POST', url, true);
ajax.setRequestHeader('Content-Type', 'text/plain;charset=UTF-8');
Expand Down
Loading

0 comments on commit fc7d0b1

Please sign in to comment.