From: wessels <> Date: Wed, 19 Feb 1997 07:03:48 +0000 (+0000) Subject: - Fixed urlParse to leave trailing slashes on FTP URLs. Although X-Git-Tag: SQUID_3_0_PRE1~5115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ef12318442708652b19bbcfebc95273df15e263;p=thirdparty%2Fsquid.git - Fixed urlParse to leave trailing slashes on FTP URLs. Although stripping the slashes offers a slight hit rate increase, it breaks some proxies which return HTTP redirects. --- diff --git a/src/url.cc b/src/url.cc index 9a83d9372a..c6d3c52a28 100644 --- a/src/url.cc +++ b/src/url.cc @@ -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;