From 43db91641a4b11daa0377233961337505bb8a865 Mon Sep 17 00:00:00 2001 From: Lee Salminen Date: Fri, 19 Aug 2022 07:34:46 -0600 Subject: [PATCH] .upper() on p and c to handle breez wallet lower-casing the whole url --- lnbits/extensions/boltcards/views_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnbits/extensions/boltcards/views_api.py b/lnbits/extensions/boltcards/views_api.py index 2ac824d0..d1f3cb39 100644 --- a/lnbits/extensions/boltcards/views_api.py +++ b/lnbits/extensions/boltcards/views_api.py @@ -107,6 +107,9 @@ async def api_hits( # /boltcards/api/v1/scan?p=00000000000000000000000000000000&c=0000000000000000 @boltcards_ext.get("/api/v1/scan") async def api_scane(p, c, request: Request): + # some wallets send everything as lower case, no bueno + p = p.upper() + c = c.upper() card = None counter = b""