Closed snagles closed 6 years ago
Most url encoders do not encode periods, causing a 404 returned in the situation below:
http://example/location/St.+Augustine rest.Get("location/:location, handler)
rest.Get("location/:location, handler)
The route matches with the period's encoded, but most languages urlencode function does not encode the period since it is valid.
For reference:
You need to use the relaxed placeholder "#" found in the documentation. I missed it.
Most url encoders do not encode periods, causing a 404 returned in the situation below:
http://example/location/St.+Augustine
rest.Get("location/:location, handler)
The route matches with the period's encoded, but most languages urlencode function does not encode the period since it is valid.