Skip to content

Commit

Permalink
upload url can be config
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang committed Oct 10, 2014
1 parent dc6d1eb commit 86d12fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Qiniu(options) {
options.timeout = options.timeout || DEFAULT_TIMEOUT;
options.downloadTimeout = options.downloadTimeout || DEFAULT_TIMEOUT;
this.options = options;
this._uploadURL = 'http://up.qiniu.com/';
this._uploadURL = options.uploadURL || 'http://up.qiniu.com/';

this._baseURL = options.domain || 'http://' + options.bucket + '.qiniudn.com';
if (this._baseURL[this._baseURL.length - 1] !== '/') {
Expand Down

0 comments on commit 86d12fe

Please sign in to comment.