We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64c412 commit 888e544Copy full SHA for 888e544
examples/koa.js
@@ -1,6 +1,6 @@
1
var koa = require('koa');
2
var app = koa();
3
-var miniprofiler = require('../lib/miniprofiler.js')
+var miniprofiler = require('../lib/miniprofiler.js');
4
5
app.use(miniprofiler.koa(() => {return false;}));
6
lib/middlewares/koa.js
@@ -23,7 +23,7 @@ module.exports = function(f, profiler) {
23
var id = profiler.startProfiling(this.req, enabled);
24
25
if (enabled) {
26
- var request = this.req
+ var request = this.req;
27
this.res.on('finish', function() {
28
profiler.stopProfiling(request);
29
});
0 commit comments