hurl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b6b313880e857ecf04f6d41ef54ca452b804d1dd
parent 65cc503083a2c47fb8a3c04c1ec2374bd6bf00e9
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:
Mhurl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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")) {