diff --git a/libs/lambda/src/response.ts b/libs/lambda/src/response.ts index d3f891c0..a4e90d62 100644 --- a/libs/lambda/src/response.ts +++ b/libs/lambda/src/response.ts @@ -53,6 +53,10 @@ export function createOKResult( try { const { body, method } = compress(JSON.stringify(response), requestHeaders["accept-encoding"]); + if (method) { + headers["content-encoding"] = method; + } + logger.info("200 OK"); return {