mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Merge branch '6.0.x'
This commit is contained in:
@@ -148,11 +148,10 @@ public interface ServerWebExchange {
|
||||
*/
|
||||
default Mono<Void> cleanupMultipart() {
|
||||
return getMultipartData()
|
||||
.onErrorResume(t -> Mono.empty()) // ignore errors reading multipart data
|
||||
.onErrorResume(t -> Mono.empty()) // ignore errors reading multipart data
|
||||
.flatMapIterable(Map::values)
|
||||
.flatMapIterable(Function.identity())
|
||||
.flatMap(part -> part.delete()
|
||||
.onErrorResume(ex -> Mono.empty()))
|
||||
.flatMap(part -> part.delete().onErrorResume(ex -> Mono.empty()))
|
||||
.then();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user