Skip to content

Response headers not working in HttpAPI PayloadFormat V2  #377

Closed
@lbeuster

Description

@lbeuster

Currently it seems that the serverless container doesn't really support HttpApi with PayloadFormat V2 (with is the default in HttpApi). All headers (even with V2ProxyHandler) are written into the multiheader field but multiheaders are not supported anymore in V2: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html

I could reproduce this with a simple spring-boot2 lambda. And also with a simple non-serverless container lambda using the aws-lambda-java-events:APIGatewayV2HTTPResponse class (which still contains the multiheader field). Headers written to the header field were exposed, multiheaders not.

Best regards
Lars

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions