Commit ac6dad9
authored
middleware chain is broken when found ctx.output
I'm not sure about this - I need your eyes here.
If I'm on target - I'll add tests so you can merge.
I'm using restify, and I have other mw on the chain after the swagger_router.
(e.g `server.on('after', restify.auditLogger(options.auditLogCfg));` )
I first noted that when I dont use json_error_handler - I get the audit entry on requests that error, and when I do - I dont.
(e.g. - the 'after' event is not emitted)
The research led me to the corrected lines.1 parent 13498c9 commit ac6dad9
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments