remove double code, an empty protocol was handled twice - hurl - Gopher/HTTP/HTTPS file grabber
HTML git clone git://git.codemadness.org/hurl
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 049d30214771c86b673413086eee4c541a01cf5a
DIR parent 7f1f2eb85f5716b6a5632bcefc0c4c0cbb9a515e
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 16 Nov 2018 16:07:00 +0100
remove double code, an empty protocol was handled twice
Diffstat:
M hurl.c | 5 -----
1 file changed, 0 insertions(+), 5 deletions(-)
---
DIR diff --git a/hurl.c b/hurl.c
@@ -492,11 +492,6 @@ main(int argc, char **argv)
exit(1);
}
- if (!u.proto[0]) {
- fprintf(stderr, "no protocol specified\n");
- exit(1);
- }
-
if (!strcmp(u.proto, "https")) {
if (!strcmp(u.proto, "https"))
memcpy(u.port, "443", 4);