dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.19k stars 796 forks source link

Python handle base64 encoded binary response from aws lambda function #1678

Closed skhrapko-amplify closed 2 weeks ago

skhrapko-amplify commented 1 year ago

Description

Add support of base64 encoded binary response from aws python lambda function

Motivation and Context

API Gateway will treat lambda-proxy responses with isBase64Encoded set
to true as binary as long as the mime-type matches one of the allowed binary types. We need Python lambdas to support base64 handling. At this point serverless-offline contains Base64 handling for JavaScript lambdas only.

Screenshots (if appropriate):

dherault commented 2 weeks ago

Thanks for the PR. Published in v14.1.0.