micronaut-projects / micronaut-aws

Projects specific to integrating Micronaut and Amazon Web Services (AWS)
Apache License 2.0
83 stars 81 forks source link

fix: allow single headers without specifying multi-value headers to b… #1999

Closed sdelamo closed 6 months ago

sdelamo commented 6 months ago

…e used

Close: #1928 #1942

Collapse single and multi-value headers as described in the AWS Lambda Docs:

The headers key can only contain single-value headers. The multiValueHeaders key can contain multi-value headers as well as single-value headers. If you specify values for both headers and multiValueHeaders, API Gateway merges them into a single list. If the same key-value pair is specified in both, only the values from multiValueHeaders will appear in the merged list.

In a production scenario, both multi and single are present, but I can see the appeal of specifying only one in a test.

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud