Created
February 3, 2020 07:19
-
-
Save secretshardul/c79bc7c70234135e3506fb230ced293d to your computer and use it in GitHub Desktop.
Return back binary data with correct headers using Lambda proxy integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = async (event) => { | |
return { | |
statusCode: 200, | |
isBase64Encoded: event["isBase64Encoded"], | |
headers: { | |
"Content-Type": event["headers"]["Content-Type"] | |
}, | |
body: event["body"] | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment