ASP.NET Web API y Urldecode
-
29-10-2019 - |
Pregunta
¿Es este un error en el marco?
Tengo que usar httputility.urldecode aquí. Pensé que las cosas se decodificaron automáticamente en MVC.
public Thingy[] Get(string id)
{
var actualId = HttpUtility.UrlDecode(id ?? string.Empty);
var result = MakeThingy(actualId );
return result;
}
Debería poder hacer esto ...
public Thingy[] Get(string id)
{
var result = MakeThingy(id ?? string.Empty);
return result;
}
No hay solución correcta
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow