From 295c3fa92c7969f22416cfc42ebfb4760532549e Mon Sep 17 00:00:00 2001 From: ivan-aksamentov Date: Mon, 7 Mar 2022 12:00:24 +0100 Subject: [PATCH] chore(infea): add missing callback invocation for lambda@edge function This function conditionally rewrites non-gz URLs to gz. The zip files are conditionally excluded. However, in case o zip file the "done" callback was not called at the end of the function, so the response was incorrect. Here I add the callback invocation at the end of the function, so that requests for zip files are correctly replied to. --- infra/rewriteToGzip.lambda.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/rewriteToGzip.lambda.js b/infra/rewriteToGzip.lambda.js index 9ec63531..40f33087 100644 --- a/infra/rewriteToGzip.lambda.js +++ b/infra/rewriteToGzip.lambda.js @@ -11,4 +11,6 @@ exports.handler = (event, context, callback) => { request.uri += '.gz' callback(null, request) } + + callback(null, request) }