Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Dec 12, 2024
1 parent d8ea05e commit 6b7c6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/myproject/functions/echo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default (req: Request, res: Response) => {
res.setHeader('Content-Encoding', 'gzip')
res.setHeader('Content-Type', 'application/json')

const compressedResponse = zlib.gzipSync(JSON.stringify(response))
const compressedResponse = zlib.gzipSync(JSON.stringify(response)).toString('base64')

res.send(compressedResponse)
}

0 comments on commit 6b7c6b4

Please sign in to comment.