I have a route like:
[Route("/usergroup/{User}/{Group}", "GET")]
The problem is that {User} has a special character (for example, a period), the path is not evaluated properly. How to code this if I check the request manually?
/usergroup/joe.smith/group1 of course doesn't work /usergroup/joe%2Esmith/group1 doesn't work either
What is the trick here?
(UPDATE) This looks like some special characters. I can use% 2D (-), but I can not use% 2E (.).
(UPDATE 2) This seems more sinister than that. This only comes from the ASP.Net Development server running Visual Studio.
(UPDATE 3) It makes it painfully debug. In principle, the route route cannot contain a period, or I get "Handler for request not found" 404.
Actually it looks like ServiceStackHttpHandlerFactory (3.9.59) throws the error found.
servicestack
Litewait
source share