From 742d7aada7ccb39404281e71f3d8f4aacc5d8ed0 Mon Sep 17 00:00:00 2001 From: se Date: Sat, 28 Jul 2001 21:28:14 +0000 Subject: The fix for schemeless and hostless URLs (rev. 1.27) broke the schemeless proxy specification, which seems to be valid according to the man page. Change the logic to consider "hostname:port" a hostname and port instead of a file URL. Approved by: des --- lib/libfetch/fetch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c index 963557b..1787dbb 100644 --- a/lib/libfetch/fetch.c +++ b/lib/libfetch/fetch.c @@ -319,7 +319,8 @@ fetchParseURL(const char *URL) p = URL; } if (!*URL || *URL == '/' || *URL == '.' || - (u->scheme[0] == '\0' && strchr(URL, '/') == NULL)) + (u->scheme[0] == '\0' && + strchr(URL, '/') == NULL && strchr(URL, ':') == NULL)) goto nohost; p = strpbrk(URL, "/@"); -- cgit v1.1