0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

always end response with a newline

This commit is contained in:
Alex Kocharin 2013-12-13 19:12:24 +04:00
parent ee16b06b3a
commit 380ec1e917

View file

@ -130,7 +130,7 @@ module.exports.log_and_etagify = function(req, res, next) {
if (body.error) {
res._sinopia_error = body.error
}
body = JSON.stringify(body, undefined, '\t')
body = JSON.stringify(body, undefined, '\t') + '\n'
}
// don't send etags with errors