0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

fix: remove stringify with space responses (#3364)

This commit is contained in:
Juan Picado 2022-09-07 17:52:10 +02:00 committed by GitHub
parent b000fafc2d
commit 90e7cfd1ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ export function final(body: FinalBody, req: $RequestExtend, res: $ResponseExtend
if (typeof (body as MiddlewareError).error === 'string') {
res.locals._verdaccio_error = (body as MiddlewareError).error;
}
body = JSON.stringify(body, undefined, ' ') + '\n';
body = JSON.stringify(body);
}
// don't send etags with errors