Skip to content

Commit fee522c

Browse files
authored
Change text/plain to text/uma-invoice for metadata (#61)
1 parent 64699e3 commit fee522c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uma/uma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def verify_uma_lnurlp_query_signature(
427427
def _add_invoice_uuid_to_metadata(metadata: str, invoice_uuid: str) -> str:
428428
try:
429429
data = json.loads(metadata)
430-
data.append(["text/plain", invoice_uuid])
430+
data.append(["text/uma-invoice", invoice_uuid])
431431
return json.dumps(data)
432432
except json.JSONDecodeError as e:
433433
raise ValueError(f"Invalid JSON: {e}") from e

0 commit comments

Comments
 (0)