Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaarten Balliauw <maarten@balliauw.be>2018-08-29 21:41:19 +0300
committerKat Marchán <kzm@zkat.tech>2018-08-29 21:41:19 +0300
commit414f2d1a1bdffc02ed31ebb48a43216f284c21d4 (patch)
treebebafe9da2af9f0b7b0fb1499b6df1b0766d2a1d /lib
parentb1a8729c80175243fbbeecd164e9ddd378a09a50 (diff)
audit: set lowercase headers for npm audit requests (#62)
Fixes: https://npm.community/t/npm-audit-making-non-rfc-compliant-requests-to-server-resulting-in-400-bad-request-pr-with-fix/1742 PR-URL: https://github.com/npm/cli/pull/62 Credit: @maartenba Reviewd-By: @zkat
Diffstat (limited to 'lib')
-rw-r--r--lib/install/audit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install/audit.js b/lib/install/audit.js
index 23a60beb3..f372b425a 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,