Fixes a transposition of the agent class names.

This commit is contained in:
Jason von Nieda
2014-01-13 15:04:53 -08:00
parent b98c00eb0b
commit e9648638d9

View File

@ -39,7 +39,7 @@ function HttpConnector(host, config) {
maxKeepAliveTime: 3e5 // 5 minutes
});
var KeepAliveAgent_ = this.host.protocol === 'https' ? KeepAliveAgent : KeepAliveAgent.HttpsAgent;
var KeepAliveAgent_ = this.host.protocol === 'https' ? KeepAliveAgent.HttpsAgent : KeepAliveAgent;
this.agent = new KeepAliveAgent_({
maxSockets: config.maxSockets,