Skip to content

Commit

Permalink
hotfix: remove double /
Browse files Browse the repository at this point in the history
  • Loading branch information
RealistikDash committed Dec 23, 2023
1 parent 7ae2f75 commit 63ed382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gd_traffic_proxy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
async def handle(request: web.Request) -> web.Response:
if not request.path.startswith(settings.HTTP_PROXY_PREFIX):
return web.Response(status=404)

data = await request.post()
path = request.path.removeprefix(settings.HTTP_PROXY_PREFIX)
path = request.path.removeprefix(settings.HTTP_PROXY_PREFIX).removeprefix("/")

target_url = f"{settings.TARGET_SERVER_URL}/{path}"

Expand Down

0 comments on commit 63ed382

Please sign in to comment.