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

Commit 76f190c

Browse files
committed
asd
1 parent 7b5729c commit 76f190c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/myproject/functions/binary.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ export default (req: Request, res: Response) => {
66
const compressed = gzipSync(Buffer.from(data, 'utf8'))
77

88
res.setHeader('Content-Type', 'application/octet-stream')
9+
res.setHeader('Content-Length', compressed.length.toString())
910
res.status(200).send(compressed)
1011
}

0 commit comments

Comments
 (0)