Skip to content

Commit

Permalink
chore: access google stored content length header
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminawd-flowdesk committed Nov 11, 2024
1 parent 220a43a commit d28a1e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions object_store/src/client/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ pub fn header_meta(

let content_length = headers
.get(CONTENT_LENGTH)
.or_else(|| headers.get("x-goog-stored-content-length"))
.context(MissingContentLengthSnafu)?;

let content_length = content_length.to_str().context(BadHeaderSnafu)?;
Expand Down

0 comments on commit d28a1e2

Please sign in to comment.