Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

heroku-proxy

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-proxy - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

6

index.js

@@ -121,2 +121,6 @@ 'use strict';

var defaultHeaders = {
'x-forwarded-for': req.ip
};
return Object.keys(req.headers).reduce(function(headers, header) {

@@ -131,3 +135,3 @@ var value = req.headers[header];

return headers;
}, {});
}, defaultHeaders);
}

@@ -134,0 +138,0 @@

2

package.json
{
"name": "heroku-proxy",
"version": "2.1.0",
"version": "2.1.1",
"description": "a heroku proxy",

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

@@ -133,2 +133,12 @@ 'use strict';

});
it('sets the forwarded for ip header', function(done) {
request({
url: 'http://localhost:' + clientPort + '/api/apps'
}, function(err, res) {
if (err) throw err;
res.headers['x-forwarded-for'].should.eql('127.0.0.1');
done();
});
});
});

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

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