.upper() on p and c to handle breez wallet lower-casing the whole url
This commit is contained in:
@@ -107,6 +107,9 @@ async def api_hits(
|
|||||||
# /boltcards/api/v1/scan?p=00000000000000000000000000000000&c=0000000000000000
|
# /boltcards/api/v1/scan?p=00000000000000000000000000000000&c=0000000000000000
|
||||||
@boltcards_ext.get("/api/v1/scan")
|
@boltcards_ext.get("/api/v1/scan")
|
||||||
async def api_scane(p, c, request: Request):
|
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
|
card = None
|
||||||
counter = b""
|
counter = b""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user