Is this a bug in the framework?
I have to use HttpUtility.UrlDecode here. I thought things were automatically decoded in MVC.
public Thingy[] Get(string id)
{
var actualId = HttpUtility.UrlDecode(id ?? string.Empty);
var result = MakeThingy(actualId );
return result;
}
I should be able to just do this ...
public Thingy[] Get(string id)
{
var result = MakeThingy(id ?? string.Empty);
return result;
}
It's a known bug. We'll fix it for the next release.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With