Skip to content

Commit 7e6796a

Browse files
Revert "added origin param"
2 parents 1ef66a6 + f2d7a75 commit 7e6796a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/murf/client.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import typing
44
import os
55
import httpx
6-
from .version import __version__
76

87
class Murf(BaseClient):
98
"""
@@ -52,10 +51,6 @@ def __init__(
5251
follow_redirects: typing.Optional[bool] = True,
5352
httpx_client: typing.Optional[httpx.Client] = None,
5453
):
55-
default_params = {'origin': f'python_sdk_{__version__}'}
56-
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
57-
httpx_client=httpx_client if httpx_client is not None else httpx.Client(params=default_params, timeout=_defaulted_timeout, follow_redirects=follow_redirects) if follow_redirects is not None else httpx.Client(params=default_params, timeout=_defaulted_timeout)
58-
5954
super().__init__(
6055
base_url=base_url,
6156
environment=environment,
@@ -114,10 +109,6 @@ def __init__(
114109
follow_redirects: typing.Optional[bool] = True,
115110
httpx_client: typing.Optional[httpx.AsyncClient] = None,
116111
):
117-
default_params = {'origin': f'python_sdk_{__version__}'}
118-
_defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
119-
httpx_client=httpx_client if httpx_client is not None else httpx.AsyncClient(params=default_params, timeout=_defaulted_timeout, follow_redirects=follow_redirects) if follow_redirects is not None else httpx.AsyncClient(params=default_params, timeout=_defaulted_timeout)
120-
121112
super().__init__(
122113
base_url=base_url,
123114
environment=environment,

0 commit comments

Comments
 (0)