Skip to content

Commit

Permalink
Merge pull request #33 from LykkeCity/NoContentFilter
Browse files Browse the repository at this point in the history
NoContentFilter fix
  • Loading branch information
Sergey Nesterov committed May 9, 2019
2 parents be4cdd2 + 76382f1 commit 48ea139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lykke.Common.ApiLibrary/Filters/NoContentFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48ea139

Please sign in to comment.