Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix(lambda-core): 🐛 add header on successful compress
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Sep 11, 2023
1 parent 4f7c46c commit af3cd99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/lambda/src/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export function createOKResult<T>(
try {
const { body, method } = compress(JSON.stringify(response), requestHeaders["accept-encoding"]);

if (method) {
headers["content-encoding"] = method;
}

logger.info("200 OK");

return {
Expand Down

0 comments on commit af3cd99

Please sign in to comment.