-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy Content-Type from Netty HttpResponse to APIGatewayV2HTTPResponse #16007
Conversation
...mazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpHandler.java
Outdated
Show resolved
Hide resolved
20aff96
to
6c1ff1a
Compare
@gsmet finally worked out how to do squash the PR, hopefully it's all ok now |
...mazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpHandler.java
Show resolved
Hide resolved
6c1ff1a
to
517ca4b
Compare
I've changed it all, the MultiValueHeaders stuff is now replaced with 'normal' headers. If the Header returned from Netty is multi-valued, it is concatenated with commas, as explained in the AWS API Gateway 2 documentation:
Let me know what you think. |
517ca4b
to
a049fca
Compare
a049fca
to
4a5ad6e
Compare
4a5ad6e
to
7dbfae1
Compare
hi @patriot1burke and @gsmet this is now ready for a review. |
...mazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpHandler.java
Show resolved
Hide resolved
@richiethom Great job on this. Thank you. |
Fixes #15909
If the Netty response is an HttpResponse, retrieve its Content-Type and set it on the APIGatewayV2HTTPResponse.
(my first pull request for a long time, a lot has changed, please don't hesitate to fix/squash if necessary)