Skip to content

4.2.2

Latest
Compare
Choose a tag to compare
@scottoffen scottoffen released this 26 Jan 05:03

Fix for #216

PathInfo was being derived from trimming any query string off of RawUrl. The rest was being used as the path, and that works for almost all cases. However, there are some situation (specifically when requests are proxied to the server) where the entire url (including protocol, host and port) ends up in the RawUrl, which prevent routes from being matched because route matching is based on the part of the url that is between the protocol://host:port and the query string.

PathInfo is now being pulled from HttpRequest.Url.AbsolutedPath, which does not contain the entire url, even when requests are proxied.