Skip to content

Commit

Permalink
Improved ApiGateway - added missing content
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianKuesters committed Sep 20, 2023
1 parent 2922e9d commit 466263e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wemogy.AspNet/Controllers/ApiGatewayBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private async Task<ActionResult> JsonGatewayAsync(string resource, Method method
var result = await _restClient.ExecuteAsync(restRequest, cancellationToken);
if (!result.IsSuccessful)
{
return new StatusCodeResult((int)result.StatusCode);
return StatusCode((int)result.StatusCode, result.Content);
}

if (result.Content == null)
Expand Down

0 comments on commit 466263e

Please sign in to comment.