0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

replacing connect.bodyParser with connect.json

This commit is contained in:
Alex Kocharin 2013-10-06 11:26:05 +04:00
parent 566f2c4896
commit b9cb60da64

View file

@ -40,7 +40,7 @@ module.exports = function(config_hash) {
app.use(basic_auth(function(user, pass) {
return config.authenticate(user, pass);
}));
app.use(express.bodyParser({strict: false}));
app.use(express.json({strict: false}));
// TODO: npm DO NOT support compression :(
app.use(express.compress());