typo
This commit is contained in:
parent
580ab7ba2c
commit
794cb60f9e
@ -1442,7 +1442,7 @@ function getAgent(options) {
|
||||
id = options + ':' + port;
|
||||
_opts.host = options;
|
||||
_opts.port = port;
|
||||
} else if (options && options === 'object') {
|
||||
} else if (options && typeof options === 'object') {
|
||||
if (options.port || options.host) {
|
||||
host = options.host || 'localhost';
|
||||
port = options.port || 80;
|
||||
|
Loading…
x
Reference in New Issue
Block a user