remix-aws
remix-aws copied to clipboard
fix(api-gateway-v2): remove duplicate cookies for function URLs
Function URLs get cookies twice, in headers and the cookies array, which was causing them to duplicate. This will overwrite rather than duplicate.
Ref: https://github.com/awslabs/aws-lambda-rust-runtime/pull/586
Function URLs use the same apigatewayv2 payload otherwise.
Today function my remix app behind a function URL broke for me suddenly. It seems to me that AWS started escaping the rawQueryString. I don't know why they'd suddenly change stuff like that.
I added another commit here just for visibility; I am not sure the cookie one is needed anymore (but doesn't hurt).