From a9c749995ac5397f2096a95084e2ade9c5360795 Mon Sep 17 00:00:00 2001 From: James Newell Date: Wed, 8 Jul 2015 09:59:35 +1000 Subject: [PATCH] only encode the / character to fix issue installing scoped packages from an upstream registry. @see #278. --- lib/up-storage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/up-storage.js b/lib/up-storage.js index f4c975511..05c05b157 100644 --- a/lib/up-storage.js +++ b/lib/up-storage.js @@ -7,7 +7,9 @@ var parse_interval = require('./config').parse_interval var Logger = require('./logger') var MyStreams = require('./streams') var Utils = require('./utils') -var encode = encodeURIComponent +var encode = function(thing) { + return thing.replace('/', '%2f'); +}; module.exports = Storage