fix: Address code review feedback - datetime, event_loop, and readability

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-06 22:05:09 +00:00
parent d1be17c1c3
commit da4d501acb
3 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class SecurityHeadersMiddleware(BaseHTTPMiddleware):
# Strict Transport Security (HTTPS only)
# Note: Only enable in production with HTTPS
if not request.url.hostname in ["localhost", "127.0.0.1"]:
if request.url.hostname not in ["localhost", "127.0.0.1"]:
response.headers["Strict-Transport-Security"] = "max-age=31536000; includeSubDomains"
# Content Security Policy (adjust based on frontend needs)