From 6b7c6b47ab194be5fffe7c70abfcf39d72d2577f Mon Sep 17 00:00:00 2001 From: David Barroso Date: Thu, 12 Dec 2024 10:11:13 +0100 Subject: [PATCH] asd --- examples/myproject/functions/echo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/myproject/functions/echo.ts b/examples/myproject/functions/echo.ts index 70cd03fe..f74da9bc 100644 --- a/examples/myproject/functions/echo.ts +++ b/examples/myproject/functions/echo.ts @@ -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) }