Skip to content

Commit

Permalink
Reformatted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer0422 committed Dec 23, 2024
1 parent d6d12db commit 5baabcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth-api/src/auth_api/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def mask_email(email: str) -> str:

def get_request_environment():
"""Return the environment corresponding to the user request."""
env_override = request.headers.get('Environment-Override')
env_override = request.headers.get("Environment-Override")
sandbox_host = current_app.config.get("AUTH_WEB_SANDBOX_HOST")
is_production = os.getenv("FLASK_ENV") == "production"

if env_override:
return env_override
if is_production and sandbox_host in request.host_url:
Expand Down

0 comments on commit 5baabcb

Please sign in to comment.