Avoid URI parsing

This parsing is unecessary once the Request object already has the
needed information.
Merge pull request #14665 from andrielfn/avoid-uri-parsing

Avoid URI parsing