fix: response hook logic
After some more thought, a response hook should be checking for whether headers are sent, and executing (or not executing) the default logic in that case. Before, we were relying on hooks to call data.next() to continue execution, but it makes more sense to have the listener either send a response or not, and handle the behaviour afterwards.v1.18.x
parent
ccc6118d30
commit
5a1c6ee7ed
Loading…
Reference in New Issue