diff --git a/src/Lykke.Common.ApiLibrary/Filters/NoContentFilter.cs b/src/Lykke.Common.ApiLibrary/Filters/NoContentFilter.cs index 0553a2b..325ee06 100644 --- a/src/Lykke.Common.ApiLibrary/Filters/NoContentFilter.cs +++ b/src/Lykke.Common.ApiLibrary/Filters/NoContentFilter.cs @@ -29,7 +29,7 @@ public void OnResultExecuted(ResultExecutedContext context) var response = context.HttpContext.Response; if (response.StatusCode == StatusCodes.Status200OK && (response.ContentLength ?? 0) == 0) { - var okResult = context.Result as OkObjectResult; + var okResult = context.Result as ObjectResult; if (okResult?.Value == null) { if (response.HasStarted)