0
Fork 0
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:
Alex Kocharin 2013-06-20 21:10:33 +04:00
parent b4688d140f
commit 1eda590bfc

View file

@ -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);