better-https-proxy-agent
Advanced tools
Comparing version 1.0.8 to 1.0.9
17
index.js
@@ -61,2 +61,3 @@ 'use strict'; | ||
stream.emit('error', err); | ||
stream.emit('close'); | ||
@@ -74,6 +75,2 @@ return; | ||
tlsSocket.once('error', (err) => { | ||
if (!stream.surrogateConnectedStream) stream.emit('error', err); | ||
}); | ||
tlsSocket.once('close', (hadError) => { | ||
@@ -207,3 +204,3 @@ if (hadError) this._evictSession(options._agentKey); | ||
const toOptions = Object.assign({}, this[OPTIONS]); | ||
toOptions.path = (throughOptions.hostname || throughOptions.host) + ':' + throughOptions.port | ||
toOptions.path = (throughOptions.hostname || throughOptions.host) + ':' + throughOptions.port; | ||
@@ -279,2 +276,7 @@ debug('_createProxyConnection', toOptions); | ||
function surrogateDestroy() { | ||
// Only destroy once. | ||
this.destroy = () => {}; | ||
this.writable = false; | ||
this.surrogateDestroy(); | ||
@@ -326,2 +328,7 @@ | ||
function connectedDestroy() { | ||
// Only destroy once. | ||
this.destroy = () => {}; | ||
this.writable = false; | ||
this.surrogateConnectedStream.destroy(); | ||
@@ -328,0 +335,0 @@ |
{ | ||
"name": "better-https-proxy-agent", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "An agent for HTTPS through an HTTP(S) proxy server using the CONNECT method", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16028
257