Skip to content

Commit

Permalink
Include application/octet-stream in the accept headers to be able to
Browse files Browse the repository at this point in the history
download content from OSP undercloud registry.

More info https://issues.redhat.com/browse/SAT-25848

[noissue]
  • Loading branch information
ipanova authored and lubosmj committed Jun 20, 2024
1 parent d05e516 commit 35bd1ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pulp_container/app/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ async def _run(self, handle_401=True, extra_data=None):
# can download manifests, namely in the repair core task
# FIXME this can be rolledback after https://github.com/pulp/pulp_container/issues/1288
headers = V2_ACCEPT_HEADERS
# Usually webservers ignore accept headers for blob endpoint
# However, some webservers when serving blobs need to have explicitly specified octet-stream
# in the accept headers
headers["Accept"] = headers["Accept"] + ",application/octet-stream"
repo_name = None
if extra_data is not None:
headers = extra_data.get("headers", headers)
Expand Down

0 comments on commit 35bd1ce

Please sign in to comment.