While testing attribute routing for default values, I noticed that for the following route and action, the parameter "name" is always null
Change the value of name here to : empty string or only having whitespace characters.
```
config.Routes.MapHttpRoute("Default", "api/values", new { controller = "values", name = "", id = RouteParameter.Optional });
public class ValuesController : ApiController
{
public string Get(string name)
{
return "Get. name: " + (name == null ? "null" : name);
}
```
__Attached__ a standalone repro.
Change the value of name here to : empty string or only having whitespace characters.
```
config.Routes.MapHttpRoute("Default", "api/values", new { controller = "values", name = "", id = RouteParameter.Optional });
public class ValuesController : ApiController
{
public string Get(string name)
{
return "Get. name: " + (name == null ? "null" : name);
}
```
__Attached__ a standalone repro.