Hi I have an input dto like this
[Route("/users/named/{UserName}", Verbs = “GET”)]
public class FindUser : IReturn
{
public string UserName { get; set; }
}
if I provide as username = “\domain\username” on the caller side I get a 404 as if the back slash was treated as as slash …
I then changed the rout in this way
[Route("/users/named/{UserName*}", Verbs = “GET”)] / / add wildcard
Now I don’t get 404 but in the UserName on the server side a receive “domain/username” … that is , the \ is turned into a / …
I verified with fiddler that , on the client side , the correct backslash is sent
Is it a bug ? I s there a way to get the \ on the input dto ?
Thank you
Enrico