0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

refactor: remove the feature for multi accept strings

This commit is contained in:
Juan Picado @jotadeveloper 2017-08-12 13:01:25 +02:00
parent fab8391daf
commit b6ee1100ef
No known key found for this signature in database
GPG key ID: 18AC54485952D158

View file

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