0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

Merge pull request #290 from verdaccio/fix-289-285

fix: Remove accept header that seems cause issues #285 #289
This commit is contained in:
Juan Picado @jotadeveloper 2017-08-12 13:07:47 +02:00 committed by GitHub
commit 836bb348fb

View file

@ -17,11 +17,7 @@ const encode = function(thing) {
const jsonContentType = 'application/json';
const contenTypeAccept = [
'application/octet-stream',
'application/vnd.npm.install-v1+json; q=1.0',
`${jsonContentType} q=0.8, */*`,
].join(', ');
const contenTypeAccept = `${jsonContentType} q=0.8, */*`;
/**
* Just a helper (`config[key] || default` doesn't work because of zeroes)