Socket
Socket
Sign inDemoInstall

request-hash

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

7

lib/index.js

@@ -46,3 +46,6 @@ 'use strict';

const getHeaders = req => {
const h = Object.assign({}, req.headers);
const h = Object.keys(req.headers || {}).reduce((acc, key) => {
acc[key.toLowerCase()] = req.headers[key];
return acc;
}, {});
const keys =

@@ -57,3 +60,3 @@ headers && headers.length && cookies && cookies.length

return filterObjectKeys(h, keys);
return filterObjectKeys(h, keys && keys.map(key => key.toLowerCase()));
};

@@ -60,0 +63,0 @@

{
"name": "request-hash",
"version": "1.0.2",
"version": "1.0.3",
"description": "Generate a hash from an express Request or http.IncomingMessage",

@@ -5,0 +5,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc