.upper() on p and c to handle breez wallet lower-casing the whole url

This commit is contained in:
Lee Salminen 2022-08-19 07:34:46 -06:00
parent 89130bd1fb
commit 43db91641a

View File

@ -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""