Skip to content

Commit

Permalink
Add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
romasku committed Apr 27, 2022
1 parent 5ff3e43 commit 407d85d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform_registry_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 407d85d

Please sign in to comment.