Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
it's tempting to simply stop looking at
req.url.path
altogether, since that was introduced forhapi
17 in pinojs@83d58a7#diff-2c4782cb20f7f0d7ca90c7bc04939f4420c4bdb42fdce618984da393ba9202f7R60 .but since pinojs#29 we look at
req.path
first (which has been around since hapi v1.0.0), which is safer in hapi, so hapi doesn't care aboutreq.url.path
anymore. this pr presents the 'what if' we dropreq.url.path
.perhaps someone else does depend on
req.url.path
. but probably no one does.req.url
is in most cases straight from node'smessage.url
, so it's quite traditional to find it, as a string, safe to use. this pr would simplify thepino-std-serializer
codebase, at some small risk to strange users (but not hapi ones).