0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-03 23:09:17 -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 jsonContentType = 'application/json';
const contenTypeAccept = [ const contenTypeAccept = `${jsonContentType} q=0.8, */*`;
'application/octet-stream',
'application/vnd.npm.install-v1+json; q=1.0',
`${jsonContentType} q=0.8, */*`,
].join(', ');
/** /**
* Just a helper (`config[key] || default` doesn't work because of zeroes) * Just a helper (`config[key] || default` doesn't work because of zeroes)