9

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;
    }

1 Answer 1

11

It's a known bug. We'll fix it for the next release.

Sign up to request clarification or add additional context in comments.

2 Comments

please excuse my ignorance, but are you the PM for ASP.NET-Web-Api? I've noticed you've answered a few of my related question in a very authoritative manner :)
Not the PM, but one of the developers (on both MVC and Web API). I try to make it clear in my SO profile: stackoverflow.com/users/358970/marcind

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.