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

@dkx/http-middleware-proxy

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dkx/http-middleware-proxy - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

12

lib/proxy-middleware.js

@@ -23,3 +23,3 @@ "use strict";

}
headers.set('host', options.host);
headers.set('host', hostToHostHeader(options.host));
const init = {

@@ -67,2 +67,12 @@ method: req.method,

}
function hostToHostHeader(host) {
const url = url_1.parse(host);
const parts = [
url.hostname,
];
if (url.port !== '80') {
parts.push(url.port);
}
return parts.join(':');
}
function sendRequestTimeout(res) {

@@ -69,0 +79,0 @@ res = res.withStatus(504);

2

package.json
{
"name": "@dkx/http-middleware-proxy",
"version": "0.0.4",
"version": "0.0.5",
"description": "Proxy middleware for @dkx/http-server",

@@ -5,0 +5,0 @@ "repository": "git@gitlab.com:dkx/http/middlewares/proxy.git",

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