From a785ac747e690706182a1b2bb39661dcf5adb20c Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:25:28 -0400 Subject: [PATCH] use method as is --- common/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/api.py b/common/api.py index fa4f7f16..1f4415ff 100644 --- a/common/api.py +++ b/common/api.py @@ -23,7 +23,7 @@ def authenticate(self, request, token) -> bool: _logger.debug("API auth: no access token or user not authenticated") return False request_scopes = [] - request_method = request.method.upper() + request_method = request.method if request_method in PERMITTED_READ_METHODS: request_scopes = ["read"] elif request_method in PERMITTED_WRITE_METHODS: