Skip to content

Commit 57127a3

Browse files
committed
[fix] Fix typo in bin/node-http-proxy
1 parent ac425d7 commit 57127a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/node-http-proxy

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ if (argv.config) {
4343
//
4444
// If `config.https` is set, then load those files into the config options.
4545
//
46-
if (options.config) {
47-
Object.keys(options.config).forEach(function (key) {
48-
options.config[key] = fs.readFileSync(options.config[key], 'utf8');
46+
if (config.https) {
47+
Object.keys(config.https).forEach(function (key) {
48+
config.https[key] = fs.readFileSync(config.https[key], 'utf8');
4949
});
5050
}
5151

0 commit comments

Comments
 (0)