wbapi-async 0.7.3__tar.gz → 0.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/PKG-INFO +1 -1
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/pyproject.toml +1 -1
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/method.py +9 -2
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/.gitignore +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/LICENSE +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/README.md +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/__init__.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/api.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/client/__init__.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/client/session/__init__.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/client/session/base.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/client/session/headers.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/exceptions.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/py.typed +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/type.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/utils/__init__.py +0 -0
- {wbapi_async-0.7.3 → wbapi_async-0.7.4}/src/wbapi_async/utils/paginate.py +0 -0
|
@@ -543,9 +543,16 @@ class MethodDispatcher:
|
|
|
543
543
|
*,
|
|
544
544
|
params: dict[str, Any] | None = None,
|
|
545
545
|
json: Any | None = None,
|
|
546
|
-
|
|
546
|
+
no_auth: bool = False,
|
|
547
547
|
) -> Any:
|
|
548
|
-
|
|
548
|
+
from urllib.parse import urlparse
|
|
549
|
+
|
|
550
|
+
if not no_auth and path.startswith(("https://", "http://")):
|
|
551
|
+
no_auth = urlparse(path).netloc in _EXTRA_ALLOWED_HOSTS
|
|
552
|
+
|
|
553
|
+
if no_auth:
|
|
554
|
+
self._session.headers.authorization = None
|
|
555
|
+
else:
|
|
549
556
|
self._session.headers.set_token(self._token)
|
|
550
557
|
url = resolve_url(path)
|
|
551
558
|
limiter = _get_limiter(path)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|