We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9789ad + 25cf410 commit a0b6b0dCopy full SHA for a0b6b0d
qiniu/conf.js
@@ -27,9 +27,9 @@ exports.RPC_HTTPS_AGENT = null;
27
exports.Config = function Config(options) {
28
options = options || {};
29
//use http or https protocol
30
- this.useHttpsDomain = options.useHttpsDomain || false;
+ this.useHttpsDomain = !!(options.useHttpsDomain || false);
31
//use cdn accerlated domains
32
- this.useCdnDomain = options.useCdnDomain || true;
+ this.useCdnDomain = !!(options.useCdnDomain && true);
33
//zone of the bucket
34
//z0 huadong, z1 huabei, z2 huanan, na0 beimei
35
this.zone = options.zone || null;
0 commit comments