Skip to content

Commit

Permalink
Static route reverse proxy always needs_upstream (#1434)
Browse files Browse the repository at this point in the history
* Static route reverse proxy always needs_upstream

* reverse hack done in https://github.com/abhinavsingh/proxy.py/pull/1371/files\#diff-8e4998393b40035040fb8494b321b9538b897ed0f25d35aeeb037a99f623abc3 to make tests work

* httpbingo is an issue on github workflows
  • Loading branch information
abhinavsingh authored Jul 28, 2024
1 parent a7077cf commit 84c36b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy/http/server/reverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def handle_request(self, request: HttpParser) -> None:
self.choice = Url.from_bytes(
random.choice(route[1]),
)
needs_upstream = True
break
# Dynamic routes
elif isinstance(route, str):
Expand Down

0 comments on commit 84c36b6

Please sign in to comment.