Skip to content

Commit

Permalink
https
Browse files Browse the repository at this point in the history
  • Loading branch information
jairomr authored Nov 22, 2024
1 parent 65a5ee4 commit a226718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

from contextlib import asynccontextmanager
import json
import os

import ee
from fastapi import FastAPI, status
Expand Down Expand Up @@ -64,7 +65,7 @@ async def http_exception_handler(request, exc):
)

base_url = request.base_url
if settings.HTTPS:
if os.environ.get('HTTPS',False):
base_url = f'{base_url}'.replace('http://', 'https://')
return {
'request': request,
Expand Down

0 comments on commit a226718

Please sign in to comment.