Skip to content

Commit

Permalink
#486 Fix upload_prefix configuration retrieval (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaSpeng authored Apr 21, 2021
1 parent 518c0e5 commit 11cf664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib-es5/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var urlLib = require('url');

// eslint-disable-next-line import/order

var _require2 = require("./config"),
var _require2 = require("./config")(),
upload_prefix = _require2.upload_prefix;

var isSecure = !(upload_prefix && upload_prefix.slice(0, 5) === 'http:');
Expand Down
2 changes: 1 addition & 1 deletion lib/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Writable = require("stream").Writable;
const urlLib = require('url');

// eslint-disable-next-line import/order
const { upload_prefix } = require("./config");
const { upload_prefix } = require("./config")();

const isSecure = !(upload_prefix && upload_prefix.slice(0, 5) === 'http:');
const https = isSecure ? require('https') : require('http');
Expand Down

0 comments on commit 11cf664

Please sign in to comment.