Socket
Socket
Sign inDemoInstall

http2-proxy

Package Overview
Dependencies
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http2-proxy - npm Package Compare versions

Comparing version 0.1.17 to 0.1.18

7

index.js

@@ -159,2 +159,6 @@ const createError = require('http-errors')

callback(new createError.BadGateway(err.message))
} else if (err.code === 'ECONNRESET') {
if (!proxyReq.aborted) {
callback(new createError.BadGateway('socket hang up'))
}
} else {

@@ -164,2 +168,5 @@ callback(err)

})
// NOTE http.ClientRequest doesn't emit 'aborted'. Instead it emits
// a "socket hang up" error.
// .on('aborted', () => callback(new createError.BadGateway('socket hang up')))
.on('timeout', () => callback(new createError.GatewayTimeout()))

@@ -166,0 +173,0 @@ .on('response', proxyRes => {

2

package.json
{
"name": "http2-proxy",
"version": "0.1.17",
"version": "0.1.18",
"scripts": {

@@ -5,0 +5,0 @@ "dev": "nodemon --inspect=9308 --expose-http2 src",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc