Alright Request.RequestUri.AbsoluteUri.ToLower() becomes Request.Path.ToString() while Request.RequestUri.Host becomes Request.Host.Host additionally. The first bit fishes out the chunk of the route after the domain name and the second bit gets the domain name or localhost or whatever. The port is not included. Request.Host.Port digs out the port.
Addendum 4/24/2020: Request.Path.ToString() should really be Request.Path.ToString().ToLower() you know?
No comments:
Post a Comment