diff options
author | se <se@FreeBSD.org> | 2001-07-28 21:28:14 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 2001-07-28 21:28:14 +0000 |
commit | 742d7aada7ccb39404281e71f3d8f4aacc5d8ed0 (patch) | |
tree | 7a1254d2f1ad2c59acf9936d98b82f0e9a71aeef /lib | |
parent | fc39ce89e9eaa45390733d4a84784a5eef06c049 (diff) | |
download | FreeBSD-src-742d7aada7ccb39404281e71f3d8f4aacc5d8ed0.zip FreeBSD-src-742d7aada7ccb39404281e71f3d8f4aacc5d8ed0.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libfetch/fetch.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, "/@"); |