Skip to content

Commit

Permalink
Update _twirp_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Oct 31, 2023
1 parent cc865e3 commit 25c72a4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion livekit-api/livekit/api/_twirp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class TwirpErrorCode:
class TwirpClient:
def __init__(self, host: str, pkg: str, prefix: str = DEFAULT_PREFIX) -> None:
parse_res = urlparse(host)
path = parse_res.path.strip("/")
host = f"http://{parse_res.netloc}/{parse_res.path}"
self.host = host.rstrip("/")
self.pkg = pkg
Expand Down

0 comments on commit 25c72a4

Please sign in to comment.