diff --git a/lib/reply.js b/lib/reply.js index 935e80ee76..29a2be4a3c 100644 --- a/lib/reply.js +++ b/lib/reply.js @@ -377,8 +377,8 @@ function preserializeHookEnd (err, request, reply, payload) { } function onSendHook (reply, payload) { - reply[kReplySent] = true if (reply.context.onSend !== null) { + reply[kReplySent] = true onSendHookRunner( reply.context.onSend, reply.request,