Skip to content

Commit 98e8e9d

Browse files
committed
Updated MultipartEntityBuilder javadocs clarifying content validation and sanitization as a responsibility of the caller
1 parent bff9c47 commit 98e8e9d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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
@@ -45,6 +45,11 @@
4545

4646
/**
4747
* Builder for multipart {@link HttpEntity}s.
48+
* <p>
49+
* IMPORTANT: it is responsibility of the caller to validate / sanitize content of body
50+
* parts, for instance, to ensure they do not contain the boundary value that can prevent
51+
* the consumer of the entity from correctly parsing / processing the body parts.
52+
* </p>
4853
*
4954
* @since 5.0
5055
*/

0 commit comments

Comments
 (0)