Skip to content

Commit 7e048a4

Browse files
Update src/shade/client.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 14164f4 commit 7e048a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/shade/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def request(
4747
json: Any = None,
4848
content: Optional[bytes] = None,
4949
) -> httpx.Response:
50-
url = f"{self.base_url}{path}"
50+
normalized_path = path if path.startswith("/") else f"/{path}"
51+
url = f"{self.base_url}{normalized_path}"
5152
request_headers = {**self._default_headers(), **(headers or {})}
5253

5354
if self._should_debug():

0 commit comments

Comments
 (0)