Skip to content

Commit

Permalink
tesT
Browse files Browse the repository at this point in the history
  • Loading branch information
salza80 committed Dec 19, 2023
1 parent b926899 commit 9b5e5e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lambda_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ def serve_static_file(path)
response[2].each { |part| content << part }
puts content.inspect

const isBase64 = is_binary_content?(response[1])
content = Base64.strict_encode64(content) if isBase64
{
'statusCode' => response[0],
'headers' => response[1],
'body' => content,
'isBase64Encoded' => is_binary_content?(response[1])
'isBase64Encoded' => isBase64
}
end

Expand Down

0 comments on commit 9b5e5e8

Please sign in to comment.