]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- Fixed urlParse to leave trailing slashes on FTP URLs. Although
authorwessels <>
Wed, 19 Feb 1997 07:03:48 +0000 (07:03 +0000)
committerwessels <>
Wed, 19 Feb 1997 07:03:48 +0000 (07:03 +0000)
          stripping the slashes offers a slight hit rate increase, it
          breaks some proxies which return HTTP redirects.

src/url.cc

index 9a83d9372a116db3f32770e37456b2ef441f6b29..c6d3c52a284b92ac03e88f5588ef3c1f197f7673 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: url.cc,v 1.52 1997/02/03 23:03:08 wessels Exp $
+ * $Id: url.cc,v 1.53 1997/02/19 00:03:48 wessels Exp $
  *
  * DEBUG: section 23    URL Parsing
  * AUTHOR: Duane Wessels
@@ -244,12 +244,14 @@ urlParse(method_t method, char *url)
        debug(23, 0, "urlParse: Invalid port == 0\n");
        return NULL;
     }
+#ifdef REMOVE_FTP_TRAILING_SLASHES
     /* remove trailing slashes from FTP URLs */
     if (protocol == PROTO_FTP) {
        t = urlpath + strlen(urlpath);
        while (t > urlpath && *(--t) == '/')
            *t = '\0';
     }
+#endif
     request = get_free_request_t();
     request->method = method;
     request->protocol = protocol;