Skip to content

Commit

Permalink
fix: RouteController doesn't mark upstream as failed in case of unsuc…
Browse files Browse the repository at this point in the history
…cessful http code #602 (#603)
  • Loading branch information
astsiapanay authored Dec 5, 2024
1 parent 99cfcab commit c8a17e5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ private void handleProxyResponse(HttpClientResponse proxyResponse) {

if (responseStatusCode == 200) {
context.getUpstreamRoute().succeed();
} else {
context.getUpstreamRoute().fail(proxyResponse);
}

BufferingReadStream proxyResponseStream = new BufferingReadStream(proxyResponse,
Expand Down

0 comments on commit c8a17e5

Please sign in to comment.