Add profiler step to lzma
This commit is contained in:
@@ -21,6 +21,9 @@ module.exports = function lzma () {
|
||||
try {
|
||||
delete req.query.lzma;
|
||||
Object.assign(req.query, JSON.parse(result));
|
||||
|
||||
req.profiler.done('lzma');
|
||||
|
||||
next();
|
||||
} catch (err) {
|
||||
next(new Error('Error parsing lzma as JSON: ' + err));
|
||||
|
||||
Reference in New Issue
Block a user