New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.4.1 to 1.5.0

4

index.js

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

if (req.get('x-proxy-host')) {
options.hostname = req.get('x-proxy-host');
}
var proxyReq = require(options.protocol).request({

@@ -53,0 +57,0 @@ auth : ':' + token,

2

package.json
{
"name": "heroku-proxy",
"version": "1.4.1",
"version": "1.5.0",
"description": "a heroku proxy",

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

@@ -20,2 +20,13 @@ 'use strict';

it('supports a custom host via x-proxy-host', function(done) {
request({
url: 'http://localhost:' + clientPort + '/api/apps',
headers: { 'x-proxy-host': '127.0.0.1' }
}, function(err, res) {
if (err) throw err;
res.headers.host.should.eql('127.0.0.1:' + serverPort);
done();
});
});
it('proxies whitelisted headers to and from the API', function(done) {

@@ -22,0 +33,0 @@ request({

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