You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the cookie-cutter app.rb w/ the ALB rack middleware, I'm seeing malformed responses. Looks like Lamby doesn't handle responses with multi-value headers. Works for me if I add the following, but I think it probably makes sense to fix the underlying issue.
def handler(event:, context:)
result = Lamby.handler $app, event, context, rack: :alb
# Lamby doesn't handle responses with multi-value headers.
result[:multiValueHeaders]['Set-Cookie'] = result[:multiValueHeaders]['Set-Cookie'][0].split("\n")
result.delete(:headers)
result
end
The text was updated successfully, but these errors were encountered:
Using the cookie-cutter
app.rb
w/ the ALB rack middleware, I'm seeing malformed responses. Looks like Lamby doesn't handle responses with multi-value headers. Works for me if I add the following, but I think it probably makes sense to fix the underlying issue.The text was updated successfully, but these errors were encountered: