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

bfn-proxy

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfn-proxy - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

3

lib/bfn-proxy.js

@@ -60,3 +60,4 @@ 'use strict'

if (request.headers.host) {
res.headers.location = (request.headers['x-forwarded-proto'] || 'http') + '://' + request.headers.host + '//' + res.headers.location
if (res.headers.location.indexOf('/') === 0) res.headers.location = (request.headers['x-forwarded-proto'] || 'http') + '://' + request.headers.host + '//http' + (scheme === 'http' ? '' : 's') + '://' + options.host + res.headers.location
else if (/^https?:\/\//i.test(res.headers.location)) res.headers.location = (request.headers['x-forwarded-proto'] || 'http') + '://' + request.headers.host + '//' + res.headers.location
response.writeHead(res.statusCode, res.headers)

@@ -63,0 +64,0 @@ res.pipe(response, {end: true})

{
"name": "bfn-proxy",
"version": "1.3.5",
"version": "1.3.6",
"description": "HTTP request proxy middleware for node.js",

@@ -5,0 +5,0 @@ "author": "Blue Fidelity Inc. (https://www.bluefidelity.com/)",

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