satori-python 0.16.0__tar.gz → 0.16.1__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.
- {satori_python-0.16.0 → satori_python-0.16.1}/PKG-INFO +1 -1
- {satori_python-0.16.0 → satori_python-0.16.1}/pyproject.toml +1 -1
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/__init__.py +1 -1
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/webhook.py +2 -2
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/protocol.py +1 -1
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/__init__.py +3 -3
- {satori_python-0.16.0 → satori_python-0.16.1}/LICENSE +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/README.md +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/__init__.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/account.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/account.pyi +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/config.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/__init__.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/base.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/util.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/client/network/websocket.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/const.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/element.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/event.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/exception.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/model.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/parser.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/adapter.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/conection.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/formdata.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/model.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/route.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/server/utils.py +0 -0
- {satori_python-0.16.0 → satori_python-0.16.1}/src/satori/utils.py +0 -0
|
@@ -41,9 +41,9 @@ class WebhookNetwork(BaseNetwork[WebhookInfo]):
|
|
|
41
41
|
# if "X-Platform" in header and "X-Self-ID" in header:
|
|
42
42
|
# platform = header["X-Platform"]
|
|
43
43
|
# self_id = header["X-Self-ID"]
|
|
44
|
-
# elif "Satori-Platform" in header and "Satori-
|
|
44
|
+
# elif "Satori-Platform" in header and "Satori-User-ID" in header:
|
|
45
45
|
# platform = header["Satori-Platform"]
|
|
46
|
-
# self_id = header["Satori-
|
|
46
|
+
# self_id = header["Satori-User-ID"]
|
|
47
47
|
# else:
|
|
48
48
|
# return web.Response(status=400)
|
|
49
49
|
try:
|
|
@@ -63,7 +63,7 @@ class ApiProtocol:
|
|
|
63
63
|
"X-Platform": self.account.platform,
|
|
64
64
|
"X-Self-ID": self.account.self_id,
|
|
65
65
|
"Satori-Platform": self.account.platform,
|
|
66
|
-
"Satori-
|
|
66
|
+
"Satori-User-ID": self.account.self_id,
|
|
67
67
|
}
|
|
68
68
|
aio = Launart.current().get_component(AiohttpClientService)
|
|
69
69
|
if multipart:
|
|
@@ -231,9 +231,9 @@ class Server(Service, RouterMixin):
|
|
|
231
231
|
if "X-Platform" not in request.headers and "Satori-Platform" not in request.headers:
|
|
232
232
|
return Response(status_code=401, content="Missing header X-Platform or Satori-Platform")
|
|
233
233
|
platform: str = request.headers.get("X-Platform") or request.headers.get("Satori-Platform") # type: ignore
|
|
234
|
-
if "X-Self-ID" not in request.headers and "Satori-
|
|
235
|
-
return Response(status_code=401, content="Missing header X-Self-ID or Satori-
|
|
236
|
-
self_id: str = request.headers.get("X-Self-ID") or request.headers.get("Satori-
|
|
234
|
+
if "X-Self-ID" not in request.headers and "Satori-User-ID" not in request.headers:
|
|
235
|
+
return Response(status_code=401, content="Missing header X-Self-ID or Satori-User-ID")
|
|
236
|
+
self_id: str = request.headers.get("X-Self-ID") or request.headers.get("Satori-User-ID") # type: ignore
|
|
237
237
|
|
|
238
238
|
for _router in self._adapters:
|
|
239
239
|
if action not in _router.routes:
|
|
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
|
|
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
|