This moves the assignment of request.plugins.tv to the request-internals hook and only executes when tags.received = true, which represents the first log in the request/response stack.
For what it's worth, I tried hooking this into the server.on('request') event, but it seems to not fire during a normal request.
This moves the assignment of
request.plugins.tv
to therequest-internals
hook and only executes whentags.received = true
, which represents the first log in the request/response stack.For what it's worth, I tried hooking this into the
server.on('request')
event, but it seems to not fire during a normal request.