Skip to content

Commit 4e31e42

Browse files
lcianclaude
andauthored
fix(gcs): propagate x-goog-custom-time in XML multipart uploads (#2)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c50e8ae commit 4e31e42

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gcs/multipart_upload.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def init_xml_multipart(request, bucket, object_name):
6060
metadata["cacheControl"] = headers["cache-control"]
6161
if headers.get("x-goog-storage-class"):
6262
metadata["storageClass"] = headers["x-goog-storage-class"]
63+
if headers.get("x-goog-custom-time"):
64+
metadata["customTime"] = headers["x-goog-custom-time"]
6365

6466
# Collect x-goog-meta-* custom metadata
6567
custom = metadata["metadata"]

0 commit comments

Comments
 (0)