Socket
Socket
Sign inDemoInstall

http-proxy

Package Overview
Dependencies
Maintainers
3
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-proxy - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

4

lib/node-http-proxy.js

@@ -436,6 +436,6 @@ /*

//
if (options.enableXForwarded === true && req.connection) {
if (options.enableXForwarded === true && req.connection && req.connection.socket) {
req.headers['x-forwarded-for'] = req.connection.remoteAddress || req.connection.socket.remoteAddress;
req.headers['x-forwarded-port'] = req.connection.remotePort || req.connection.socket.remotePort;
req.headers['x-forwarded-proto'] = res.connection.pair ? 'https' : 'http';
req.headers['x-forwarded-proto'] = req.connection.pair ? 'https' : 'http';
}

@@ -442,0 +442,0 @@

{
"name": "http-proxy",
"description": "A full-featured http reverse proxy for node.js",
"version": "0.6.4",
"version": "0.6.5",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

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