Skip to content

Commit

Permalink
fix(api-server): Fixes issue using fastify compress plugin (#6766)
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 authored and jtoar committed Nov 2, 2022
1 parent 898db2c commit da281fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-server/src/requestHandlers/awsLambdaFastify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const fastifyResponseForLambdaResult = (
if (lambdaResult.isBase64Encoded) {
// Correctly handle base 64 encoded binary data. See
// https://aws.amazon.com/blogs/compute/handling-binary-data-using-amazon-api-gateway-http-apis
reply.send(Buffer.from(body, 'base64'))
return reply.send(Buffer.from(body, 'base64'))
} else {
reply.send(body)
return reply.send(body)
}
}

Expand Down

0 comments on commit da281fc

Please sign in to comment.