Add profiler step to lzma
This commit is contained in:
parent
5bac36b30f
commit
ccc28f3617
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user