Skip to content

Commit

Permalink
intify port
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Sep 13, 2024
1 parent 9346410 commit b9d0fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/appointment/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async def apply_x_forwarded_headers_to_client(request: Request, call_next):
client_ip = ip_list.split(',')
client[0] = client_ip[0]
if port:
client[1] = port
client[1] = int(port)

# Transform it back into a tuple and update the request
request.scope.update({'client': tuple(client)})
Expand Down

0 comments on commit b9d0fcf

Please sign in to comment.