mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[PR #2063] feat: Added support for "X-Goog-Stored-Content-Length" in object download headers. #2062
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#2062
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/2063
Author: @mmukada
Created: 11/6/2025
Status: 🔄 Open
Base:
main← Head:dev📝 Commits (3)
a67a250feat: Added support for "X-Goog-Stored-Content-Length" in object download headers.a626c7dMerge branch 'fsouza:main' into dev23650fdfix: Correctly report X-Goog-Stored-Content-Length before content transcoding and add new tests for this behavior.📊 Changes
3 files changed (+145 additions, -11 deletions)
View changed files
📝
fakestorage/object.go(+2 -0)📝
fakestorage/object_test.go(+1 -1)📝
fakestorage/server_test.go(+142 -10)📄 Description
According to the Google team, the
X-Goog-Stored-Content-Lengthheader is always included in GCS object downloads and corresponds tometadata.size(the object’s size at rest). The Rust SDK uses this header to convey the object size during downloads — see https://github.com/googleapis/google-cloud-rust/discussions/3713.Documentation: https://docs.cloud.google.com/storage/docs/json_api/v1/parameters#xgoogstoredcontentlength
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.