arturobernalg commented on code in PR #619:
URL:
https://github.com/apache/httpcomponents-client/pull/619#discussion_r1977727978
##########
httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/MultipartEntityBuilder.java:
##########
@@ -204,6 +214,20 @@ public MultipartEntityBuilder addBinaryBody(final String
name, final InputStream
return addBinaryBody(name, stream, ContentType.DEFAULT_BINARY, null);
}
+ /**
+ * Returns the fixed default boundary value.
+ */
+ private String getFixedBoundary() {
+ return "httpclient_boundary_7k9p2m4x8n5j3q6t1r0vwyzabcdefghi";
+ }
+
+ /**
+ * Generates a random boundary using UUID.
+ */
+ private String getRandomBoundary() {
+ return UUID.randomUUID().toString();
Review Comment:
@ok2c done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]