Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

String route binding still has URI escape sequences #221

Closed
flipchart opened this issue Oct 27, 2015 · 1 comment
Closed

String route binding still has URI escape sequences #221

flipchart opened this issue Oct 27, 2015 · 1 comment

Comments

@flipchart
Copy link

With a controller as below:

[Route("api")]
public class ValuesController : Controller
{
    [HttpGet("{param}")]
    public string Get(string param)
    {
        return param;
    }
}

requests to this action which contain URI escape sequences (e.g. %20 for space) are carried through in the param value, rather than being escaped as they were in ASP.net 4; i.e. GET /api/a%20b assigns param the value "a%20b" instead of "a b"

@rynowak
Copy link
Member

rynowak commented Oct 27, 2015

This is very likely a manifestation of this kestrel bug: aspnet/KestrelHttpServer#124

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants