From 7b2fa8cf7138f2a364df65868a08c242aa58722d Mon Sep 17 00:00:00 2001 From: joerivrij Date: Thu, 19 Oct 2023 11:05:17 +0200 Subject: [PATCH] adds ssl 6 --- api/v1/endpoints/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/endpoints/status.py b/api/v1/endpoints/status.py index 8a90bc3..ad744be 100644 --- a/api/v1/endpoints/status.py +++ b/api/v1/endpoints/status.py @@ -23,4 +23,4 @@ async def get_status(request: Request): https_url = request.url.replace(scheme="https") headers = {"Location": str(https_url)} logging.debug(f"https_url: {https_url}") - raise HTTPException(status_code=307, detail="Temporary Redirect to HTTPS", headers=headers) + return JSONResponse(content={"status": "OK"}, status_code=200, headers=headers)