gnodet-bot commented on code in PR #31052:
URL: https://github.com/apache/camel/pull/31052#discussion_r4723425583


##########
components/camel-minio/src/main/java/org/apache/camel/component/minio/MinioEndpoint.java:
##########
@@ -205,6 +207,24 @@ MinioClient createMinioClient() {
         }
     }
 
+    /**
+     * The MinIO client replaces the scheme of the endpoint with the secure 
flag when a port is given. An endpoint with
+     * a scheme keeps its scheme; the secure option applies only to a host 
name without a scheme.
+     */

Review Comment:
   The first sentence describes the MinIO SDK's buggy behavior (what this 
method works around), not what the method itself does. Lead with the method's 
purpose instead:
   
   ```suggestion
       /**
        * Determines the secure flag to pass to 
MinioClient.Builder.endpoint(endpoint, port, secure).
        * An endpoint with a scheme keeps its scheme; the secure option applies 
only to a host name without a scheme.
        * This works around the MinIO client replacing the scheme with the 
secure flag when a port is given.
        */
   ```



-- 
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]

Reply via email to