From 94fb6adf4f2c57b6cd9d47e96ff84cf1bc45725b Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 29 Jul 2017 12:03:51 +0200 Subject: [PATCH] fix: refactor #268 in a better way, amended to elegant way --- src/lib/storage/up-storage.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/storage/up-storage.js b/src/lib/storage/up-storage.js index 7ef41571f..6df0ac25f 100644 --- a/src/lib/storage/up-storage.js +++ b/src/lib/storage/up-storage.js @@ -14,7 +14,11 @@ const encode = function(thing) { 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)