mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
fix: refactor #268 in a better way, amended to elegant way
This commit is contained in:
parent
fdc9624d70
commit
94fb6adf4f
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,11 @@ const encode = function(thing) {
|
||||||
return encodeURIComponent(thing).replace(/^%40/, '@');
|
return encodeURIComponent(thing).replace(/^%40/, '@');
|
||||||
};
|
};
|
||||||
|
|
||||||
const contenTypeAccept = 'application/octet-stream, application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*';
|
const contenTypeAccept = [
|
||||||
|
'application/octet-stream',
|
||||||
|
'application/vnd.npm.install-v1+json; q=1.0',
|
||||||
|
'application/json; 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)
|
||||||
|
|
Loading…
Reference in a new issue