From 407d85d7ba754e06fc36b4218e4d3f04f9c3425c Mon Sep 17 00:00:00 2001 From: Roman Skurikhin Date: Thu, 28 Apr 2022 00:55:46 +0300 Subject: [PATCH] Add debug log --- platform_registry_api/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform_registry_api/api.py b/platform_registry_api/api.py index 69ced2c8..7ce7d9f3 100644 --- a/platform_registry_api/api.py +++ b/platform_registry_api/api.py @@ -821,6 +821,9 @@ def _prepare_response_headers( def _convert_location_header(self, url_str: str, url_factory: URLFactory) -> str: url_raw = URL(url_str) + print(url_str) + print(url_factory.upstream_host) + print(url_factory.upstream_host) if url_raw.host is not None and url_raw.host != url_factory.upstream_host: return url_str # Redirect to outer service, maybe AWS S3 redirect upstream_repo_url = RepoURL.from_url(URL(url_str))