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