Skip to content

Commit 9b03e6e

Browse files
committed
Updated MultipartEntityBuilder javadocs clarifying content validation and sanitization as a responsibility of the caller
1 parent 85be78d commit 9b03e6e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/MultipartEntityBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
* is logged when no explicit boundary is set via {@link #setBoundary(String)}, encouraging
5656
* deliberate choice.
5757
* </p>
58+
* <p>
59+
* IMPORTANT: it is responsibility of the caller to validate / sanitize content of body
60+
* parts, for instance, to ensure they do not contain the boundary value that can prevent
61+
* the consumer of the entity from correctly parsing / processing the body parts.
62+
* </p>
5863
*
5964
* @since 5.0
6065
*/

0 commit comments

Comments
 (0)