문제

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

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top