checks if hostname is .onion and change scheme (#11)

* checks if hostname is .onion and change scheme
* resolve @motorina0 's comments
This commit is contained in:
Tiago Vasconcelos 2023-09-24 19:22:48 +01:00 committed by GitHub
commit 049826071c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 5 deletions

View file

@ -1,7 +1,9 @@
from http import HTTPStatus
from urllib.parse import urlparse
from fastapi import Request, Query
from fastapi import Query, Request
from lnurl import LnurlErrorResponse, LnurlPayActionResponse, LnurlPayResponse
from loguru import logger
from starlette.exceptions import HTTPException
from lnbits.core.services import create_invoice