From 37027baf3e02b00a204be43983061e06b3e08b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Tue, 1 Aug 2023 22:51:36 +0300 Subject: [PATCH] Fix longpoll tokens check --- app/doorboy-proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/doorboy-proxy.py b/app/doorboy-proxy.py index d438c49..e92a6bf 100755 --- a/app/doorboy-proxy.py +++ b/app/doorboy-proxy.py @@ -56,7 +56,7 @@ async def view_doorboy_uids(request): @app.route("/longpoll", stream=True) async def view_longpoll(request): response = await request.respond(content_type="text/event-stream") - if request.headers.get("KEY") != DOORBOY_SECRET: + if key not in [DOORBOY_SECRET_FLOOR, DOORBOY_SECRET_WORKSHOP]: return text("Invalid token") await response.send("data: response-generator-started\n\n")