You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "reschke (via GitHub)" <gi...@apache.org> on 2023/09/01 10:26:05 UTC

[GitHub] [httpcomponents-core] reschke commented on a diff in pull request #423: HTTPCORE-756 - Enforced the requirement that "https" URIs must not have an empty host identifier

reschke commented on code in PR #423:
URL: https://github.com/apache/httpcomponents-core/pull/423#discussion_r1312857095


##########
httpcore5/src/main/java/org/apache/hc/core5/net/URIBuilder.java:
##########
@@ -309,11 +310,14 @@ public URI build() throws URISyntaxException {
         return new URI(buildString());
     }
 
-    private String buildString() {
+    private String buildString() throws URISyntaxException {
         final StringBuilder sb = new StringBuilder();
         if (this.scheme != null) {
             sb.append(this.scheme).append(':');
         }
+        if (URIScheme.HTTPS.same(scheme) && (TextUtils.isBlank(host))) {

Review Comment:
   Why is this specific to HTTPS?



-- 
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: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org