Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/6917.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed generation of signed URLs when using GCS as the storage backend.
9 changes: 3 additions & 6 deletions pulpcore/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,11 @@
"Content-Language": "content_language",
"Content-Encoding": "content_encoding",
}
# https://gcloud.readthedocs.io/en/latest/storage-blobs.html
# https://gcloud.readthedocs.io/en/latest/storage-blobs.html#google.cloud.storage.blob.Blob.generate_signed_url

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit - can we get this on its own line? :)

# response-headers Google Cloud Storage respects, and what they map to in a GCS object
GCS_RESPONSE_HEADER_MAP = {
"Content-Disposition": "content_disposition",
"Content-Type": "content_type",
"Cache-Control": "cache_control",
"Content-Language": "content_language",
"Content-Encoding": "content_encoding",
"Content-Disposition": "response_disposition",
"Content-Type": "response_type",
}

# Storage-type mapped to storage-response-map
Expand Down