You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsHttpApiV2ProxyHttpServletRequest.java
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsHttpServletRequest.java
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ public abstract class AwsHttpServletRequest implements HttpServletRequest {
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsProxyHttpServletRequest.java
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -259,14 +259,23 @@ public void logout()
259
259
@Override
260
260
publicCollection<Part> getParts()
261
261
throwsIOException, ServletException {
262
-
returngetMultipartFormParametersMap().values();
262
+
List<Part> partList =
263
+
getMultipartFormParametersMap().values().stream()
264
+
.flatMap(List::stream)
265
+
.collect(Collectors.toList());
266
+
returnpartList;
263
267
}
264
268
265
269
266
270
@Override
267
271
publicPartgetPart(Strings)
268
272
throwsIOException, ServletException {
269
-
returngetMultipartFormParametersMap().get(s);
273
+
// In case there's multiple files with the same fieldName, we return the first one in the list
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/test/java/com/amazonaws/serverless/proxy/internal/servlet/AwsProxyHttpServletRequestFormTest.java
0 commit comments