We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67155e6 commit be34bbaCopy full SHA for be34bba
python/svix/api/common.py
@@ -74,11 +74,9 @@ def _get_httpx_kwargs(
74
header_params: t.Optional[t.Dict[str, str]],
75
json_body: t.Optional[t.Dict[str, t.Any]],
76
) -> t.Dict[str, t.Any]:
77
- if path_params is None:
78
- url = f"{self._client.base_url}{path}"
79
- else:
80
- formatted_path = path.format(**path_params)
81
- url = url = f"{self._client.base_url}{formatted_path}"
+ if path_params is not None:
+ path = path.format(**path_params)
+ url = f"{self._client.base_url}{path}"
82
83
headers: t.Dict[str, str] = {
84
**self._client.get_headers(),
0 commit comments