From 339495078d9b85281bdcd4fac1590ca62e751bb6 Mon Sep 17 00:00:00 2001 From: koalasat Date: Sat, 12 Jul 2025 11:24:10 +0200 Subject: [PATCH] Enforce nostr pubkey in header --- robosats/middleware.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/robosats/middleware.py b/robosats/middleware.py index 00fafb0e..6a9bf509 100644 --- a/robosats/middleware.py +++ b/robosats/middleware.py @@ -42,12 +42,7 @@ class SplitAuthorizationHeaderMiddleware(MiddlewareMixin): auth_header = request.META.get("HTTP_AUTHORIZATION", "") split_auth = auth_header.split(" | ") - if len(split_auth) == 3: - # Deprecated in favor of len 4 - request.META["HTTP_AUTHORIZATION"] = split_auth[0] - request.META["PUBLIC_KEY"] = split_auth[1] - request.META["ENCRYPTED_PRIVATE_KEY"] = split_auth[2] - elif len(split_auth) == 4: + if len(split_auth) == 4: request.META["HTTP_AUTHORIZATION"] = split_auth[0] request.META["PUBLIC_KEY"] = split_auth[1] request.META["ENCRYPTED_PRIVATE_KEY"] = split_auth[2]