New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-http2-proxy

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-http2-proxy - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

11

dist/koa-http2-proxy.js

@@ -55,3 +55,5 @@ "use strict";

proxyReq.setHeader('x-forwarded-for', req.socket.remoteAddress);
proxyReq.setHeader('x-forwarded-proto', req.socket.encrypted ? 'https' : 'http');
const proto = req.headers['x-forwarded-proto'] ||
(req.socket.encrypted ? 'https' : 'http');
proxyReq.setHeader('x-forwarded-proto', proto);
proxyReq.setHeader('x-forwarded-host', req.headers.host);

@@ -180,3 +182,8 @@ }

this.logError(err, req);
socket.destroy();
try {
socket.destroy();
}
catch (e) {
this.logError(e, req);
}
}

@@ -183,0 +190,0 @@ };

2

package.json
{
"name": "koa-http2-proxy",
"version": "0.0.3",
"version": "0.0.4",
"description": "Configure http2-proxy middleware with ease for koa.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -274,3 +274,2 @@ # koa-http2-proxy

- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL
- **option.protocol**: Agent protocol ('http' or 'https'). Defaults to 'http'
- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target

@@ -277,0 +276,0 @@ - **option.proxyName**: Proxy name used for Via header

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