From 4c5291571dc3317d464ae6662848e235bb04d35e Mon Sep 17 00:00:00 2001 From: Jaroslaw Michalski Date: Thu, 30 Mar 2023 10:08:41 +0100 Subject: [PATCH] revert domain used in redirection --- app/utils/operations/response.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/utils/operations/response.py b/app/utils/operations/response.py index 6222776..2ed202c 100644 --- a/app/utils/operations/response.py +++ b/app/utils/operations/response.py @@ -39,13 +39,7 @@ def __init__(self, request, container, path): host: str = request.base_request.headers.get("X-Forwarded-Host", API_URL) host = host.removeprefix("https://").removeprefix("api.") - # TODO: remove this IF statement when routing rule for rr-apiv2cache frontend - # domain name has been change - self.location = ( - f"https://api.{host}/downloads/{container}/{path}" - if not host.startswith("sandbox") - else f"https://api-{host}/downloads/{container}/{path}" - ) + self.location = f"https://api.{host}/downloads/{container}/{path}" permalink = f"https://{API_URL}/apiv2cache/{request.path}"