This commit is contained in:
isaacs 2011-06-04 10:41:41 -07:00
parent 580ab7ba2c
commit 794cb60f9e

View File

@ -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;