agent-base
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -85,3 +85,6 @@ "use strict"; | ||
addRequest(req, _opts) { | ||
const ownOpts = Object.assign(Object.assign({}, _opts), { secureEndpoint: isSecureEndpoint() }); | ||
const ownOpts = Object.assign({}, _opts); | ||
if (typeof ownOpts.secureEndpoint !== 'boolean') { | ||
ownOpts.secureEndpoint = isSecureEndpoint(); | ||
} | ||
// Set default `host` for HTTP to localhost | ||
@@ -88,0 +91,0 @@ if (ownOpts.host == null) { |
{ | ||
"name": "agent-base", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Turn a function into an `http.Agent` instance", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index", |
Sorry, the diff of this file is not supported yet
23691
289