Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c154dc3

Browse files
committed
Return range from R2Bucket#head()
Calling `head()` should return the full-range here
1 parent 5ec2972 commit c154dc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/tre/src/plugins/r2/gateway.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class R2Gateway {
5252

5353
if (stored?.metadata === undefined) throw new NoSuchKey();
5454
const { metadata } = stored;
55+
metadata.range = { offset: 0, length: metadata.size };
5556

5657
return new R2Object(metadata);
5758
}

0 commit comments

Comments
 (0)