This commit is contained in:
Simon Martín 2018-06-05 13:16:14 +02:00
parent a8ccacbc09
commit 66af518deb

View File

@ -112,9 +112,9 @@ module.exports = {
})
.on('data', data => {
if (gzip) {
metrics.addGzipSize(data.length)
metrics.addGzipSize(data.length);
} else {
metrics.addSize(data.length)
metrics.addSize(data.length);
}
})
.on('end', () => requestEnded = true);