Skip to content

Commit

Permalink
use LinkedHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Apr 5, 2023
1 parent b46f2ae commit 0f624cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Base64;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -120,7 +120,7 @@ public AwsProxyResponse writeResponse(

private static Map<String, String> getHeaders(AwsProxyResponse awsProxyResponse) {
Headers multiValueHeaders = awsProxyResponse.getMultiValueHeaders();
Map<String, String> headers = new HashMap<>();
Map<String, String> headers = new LinkedHashMap<>();
for (Map.Entry<String, List<String>> entry : multiValueHeaders.entrySet()) {
List<String> headerValues = entry.getValue();
if (headerValues != null && headerValues.size() == 1) {
Expand Down

0 comments on commit 0f624cb

Please sign in to comment.