From c5e06c0911bad520357b5b5b0b1104d1e7aad14e Mon Sep 17 00:00:00 2001 From: Bryan Gerlach Date: Sat, 2 Nov 2024 01:01:04 -0500 Subject: [PATCH] . --- rdgenerator/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdgenerator/views.py b/rdgenerator/views.py index c4db654..2f2553a 100644 --- a/rdgenerator/views.py +++ b/rdgenerator/views.py @@ -67,7 +67,7 @@ def generator_view(request): filename = re.sub(r'[^\w\s-]', '_', filename).strip() myuuid = str(uuid.uuid4()) - protocol = 'https' if request.is_secure() else 'http' + protocol = 'https' host = request.get_host() full_url = f"{protocol}://{host}/api" try: