Fix github #164 (when return type is object we always return 204)

This commit is contained in:
Yishai Galatzer 2014-03-31 18:59:19 -07:00
parent fbbc59b392
commit b9010072aa
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}