From 8bf79cc9c455ae1c580ecabc2fb1e09c3fd8bd2f Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 7 Jul 2023 15:02:38 +0200 Subject: [PATCH] Polish contribution Closes gh-30593 --- .../org/springframework/http/client/MultipartBodyBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java b/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java index 63c6d67cac1e..fb8f89c3a31c 100644 --- a/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java +++ b/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java @@ -76,7 +76,7 @@ * * Mono<Void> result = webClient.post() * .uri("...") - * .body(BodyInserters.fromMultipartData(multipartBody)) + * .bodyValue(multipartBody) * .retrieve() * .bodyToMono(Void.class) *