Skip to content

Commit

Permalink
Fix docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
romasku committed Apr 27, 2022
1 parent 64e9dfc commit 5ff3e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform_registry_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ def _prepare_response_headers(

def _convert_location_header(self, url_str: str, url_factory: URLFactory) -> str:
url_raw = URL(url_str)
if url_raw.host != 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))
registry_repo_url = url_factory.create_registry_repo_url(upstream_repo_url)
Expand Down

0 comments on commit 5ff3e43

Please sign in to comment.