From deefb6fbe1c785c99d812b6ddcb0e452f9b02b11 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 10 Sep 2022 20:39:50 +0100 Subject: [PATCH] Serve: Don't redefine built-in `open` --- pywidevine/serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywidevine/serve.py b/pywidevine/serve.py index 7bdd9b1..1f49386 100644 --- a/pywidevine/serve.py +++ b/pywidevine/serve.py @@ -54,7 +54,7 @@ async def ping(_) -> web.Response: @routes.get("/{device}/open") -async def open(request: web.Request) -> web.Response: +async def open_(request: web.Request) -> web.Response: secret_key = request.headers["X-Secret-Key"] device_name = request.match_info["device"] user = request.app["config"]["users"][secret_key]