mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
use compression if somebody asked for it
This commit is contained in:
parent
b4688d140f
commit
1eda590bfc
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ module.exports = function(config_hash) {
|
|||
}));
|
||||
app.use(express.bodyParser());
|
||||
|
||||
// TODO: npm DO NOT support compression :(
|
||||
app.use(express.compress());
|
||||
|
||||
app.param('package', validate_name);
|
||||
app.param('filename', validate_name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue