Skip to content

Commit

Permalink
audit: set lowercase headers for npm audit requests (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenba authored and zkat committed Aug 29, 2018
1 parent b1a8729 commit 414f2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 414f2d1

Please sign in to comment.