allow to connect to HTTPS on non-standard (443) port - hurl - Gopher/HTTP/HTTPS file grabber
 (HTM) git clone git://git.codemadness.org/hurl
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b6b313880e857ecf04f6d41ef54ca452b804d1dd
 (DIR) parent 65cc503083a2c47fb8a3c04c1ec2374bd6bf00e9
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 10 Nov 2019 14:28:09 +0100
       
       allow to connect to HTTPS on non-standard (443) port
       
       Diffstat:
         M hurl.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/hurl.c b/hurl.c
       @@ -501,7 +501,7 @@ main(int argc, char **argv)
                                        errx(1, "tls set ciphers failed: %s",
                                             tls_config_error(tls_config));
                        }
       -                if (!strcmp(u.proto, "https"))
       +                if (!u.port[0] && !strcmp(u.proto, "https"))
                                memcpy(u.port, "443", 4);
                        statuscode = https_request();
                } else if (!strcmp(u.proto, "http")) {