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: spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolver.java
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -99,13 +99,9 @@ public Mono<Object> resolveArgument(
99
99
// Mono<Part> or Flux<Part>
100
100
MethodParameterelementType = parameter.nested();
101
101
if (Part.class.isAssignableFrom(elementType.getNestedParameterType())) {
102
-
parts = (adapter.isMultiValue() ? parts : parts.take(1));
103
102
returnMono.just(adapter.fromPublisher(parts));
104
103
}
105
-
// We have to decode the content for each part, one at a time
Copy file name to clipboardExpand all lines: spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolverTests.java
+61Lines changed: 61 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@
60
60
/**
61
61
* Unit tests for {@link RequestPartMethodArgumentResolver}.
0 commit comments