$OpenBSD: base-url_c,v 1.1 2001/09/29 14:57:52 naddy Exp $
--- url.c.orig	Sat Sep 29 16:06:06 2001
+++ url.c	Sat Sep 29 16:07:08 2001
@@ -605,6 +605,19 @@ parseURL(char *url, ParsedURL * p_url, P
 	else
 	    p_url->scheme = SCM_LOCAL;
 	p = url;
+	if (!strncmp(p,"//",2)) {
+	    /* URL begins with // */
+	    /* it means that 'scheme:' is abbreviated */
+#ifdef CYGWIN
+	    /* in CYGWIN, '//C/' doesn't means 'http://C/' */
+	    if (IS_ALPHA(p[2]) && p[3] == '/') {
+		p_url->scheme = SCM_LOCAL;
+		goto analyze_file;
+	    }
+#endif /* CYGWIN */
+	    p += 2;
+	    goto analyze_url;
+	}
 	goto analyze_file;
     }
     /* get host and port */
