Skip to content

Commit a0b6b0d

Browse files
authored
Merge pull request #334 from sxci/update_config_options
fix Config.useCdnDomain
2 parents e9789ad + 25cf410 commit a0b6b0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiniu/conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ exports.RPC_HTTPS_AGENT = null;
2727
exports.Config = function Config(options) {
2828
options = options || {};
2929
//use http or https protocol
30-
this.useHttpsDomain = options.useHttpsDomain || false;
30+
this.useHttpsDomain = !!(options.useHttpsDomain || false);
3131
//use cdn accerlated domains
32-
this.useCdnDomain = options.useCdnDomain || true;
32+
this.useCdnDomain = !!(options.useCdnDomain && true);
3333
//zone of the bucket
3434
//z0 huadong, z1 huabei, z2 huanan, na0 beimei
3535
this.zone = options.zone || null;

0 commit comments

Comments
 (0)