From a8655c91dd67e57829b553ae9979f97bb6d3a8fd Mon Sep 17 00:00:00 2001 From: Maarten Balliauw Date: Wed, 29 Aug 2018 10:08:38 +0200 Subject: [PATCH] Set lowercase headers for NPM audit requests --- lib/install/audit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install/audit.js b/lib/install/audit.js index 23a60beb31138..f372b425a6fd4 100644 --- a/lib/install/audit.js +++ b/lib/install/audit.js @@ -87,7 +87,7 @@ function fetchAudit (href, body) { const opts = pacoteOpts() return registryFetch(href, { method: 'POST', - headers: { 'Content-Encoding': 'gzip', 'Content-Type': 'application/json' }, + headers: { 'content-encoding': 'gzip', 'content-type': 'application/json' }, config: npm.config, npmSession: opts.npmSession, projectScope: npm.projectScope,