New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

https-rewrite

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

https-rewrite - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+2
-1
express/index.js

@@ -13,3 +13,4 @@ const targetProtocol = 'https';

if (req.protocol && req.protocol !== targetProtocol) {
res.redirect(options.code, targetProtocol + '://' + req.hostname + req.originalUrl)
res.redirect(options.code, targetProtocol + '://' + req.get('host') + req.originalUrl);
return;
}

@@ -16,0 +17,0 @@ next();

{
"name": "https-rewrite",
"version": "1.0.0",
"version": "1.0.1",
"description": "Rewrites http requests to https",

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