https-proxy-agent
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -84,3 +84,7 @@ "use strict"; | ||
debug('Creating `tls.Socket`: %o', this.connectOpts); | ||
socket = tls.connect(this.connectOpts); | ||
const servername = this.connectOpts.servername || this.connectOpts.host; | ||
socket = tls.connect({ | ||
...this.connectOpts, | ||
servername: servername && net.isIP(servername) ? undefined : servername | ||
}); | ||
} | ||
@@ -87,0 +91,0 @@ else { |
@@ -84,3 +84,7 @@ "use strict"; | ||
debug('Creating `tls.Socket`: %o', this.connectOpts); | ||
socket = tls.connect(this.connectOpts); | ||
const servername = this.connectOpts.servername || this.connectOpts.host; | ||
socket = tls.connect({ | ||
...this.connectOpts, | ||
servername: servername && net.isIP(servername) ? undefined : servername | ||
}); | ||
} | ||
@@ -87,0 +91,0 @@ else { |
@@ -50,3 +50,6 @@ "use strict"; | ||
} | ||
const headerParts = buffered.slice(0, endOfHeaders).toString('ascii').split('\r\n'); | ||
const headerParts = buffered | ||
.slice(0, endOfHeaders) | ||
.toString('ascii') | ||
.split('\r\n'); | ||
const firstLine = headerParts.shift(); | ||
@@ -53,0 +56,0 @@ if (!firstLine) { |
{ | ||
"name": "https-proxy-agent", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35127
505