Skip to content

Commit

Permalink
Merge pull request #33 from wemogy/fix/api-gateway
Browse files Browse the repository at this point in the history
Improved ApiGateway - added missing content
  • Loading branch information
SebastianKuesters authored Sep 20, 2023
2 parents 2922e9d + 466263e commit 74becf9
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 74becf9

Please sign in to comment.