mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
only encode the / character to fix issue installing scoped packages from an upstream registry. @see #278.
This commit is contained in:
parent
93245c0179
commit
a9c749995a
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ var parse_interval = require('./config').parse_interval
|
||||||
var Logger = require('./logger')
|
var Logger = require('./logger')
|
||||||
var MyStreams = require('./streams')
|
var MyStreams = require('./streams')
|
||||||
var Utils = require('./utils')
|
var Utils = require('./utils')
|
||||||
var encode = encodeURIComponent
|
var encode = function(thing) {
|
||||||
|
return thing.replace('/', '%2f');
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = Storage
|
module.exports = Storage
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue