Fix github #164 (when return type is object we always return 204)
This commit is contained in:
parent
fbbc59b392
commit
b9010072aa
|
|
@ -38,7 +38,7 @@ namespace Microsoft.AspNet.Mvc
|
|||
throw new InvalidOperationException("HttpActionDescriptor_NoConverterForGenericParamterTypeExists");
|
||||
}
|
||||
|
||||
if (declaredReturnType.IsAssignableFrom(typeof(void)) || actionReturnValue == null)
|
||||
if (declaredReturnType == typeof(void) || actionReturnValue == null)
|
||||
{
|
||||
return new NoContentResult();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue