Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit c1cf66d

Browse files
committed
fix: sets proper headers for gcs
1 parent 2cd83f2 commit c1cf66d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/adapters/gcs/staticHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export const getHandler = ({ gcs, bucket, collection }: Args): StaticHandler =>
1919
const [metadata] = await file.getMetadata()
2020

2121
res.set({
22-
'Content-Length': metadata.contentType,
23-
'Content-Type': metadata.contentLength,
22+
'Content-Length': metadata.size,
23+
'Content-Type': metadata.contentType,
2424
ETag: metadata.etag,
2525
})
2626

0 commit comments

Comments
 (0)