]> granicus.if.org Git - apache/commitdiff
Fix proxy so that it is possible to access ftp: URLs via a proxy
authorGraham Leggett <minfrin@apache.org>
Thu, 8 Aug 2002 17:59:18 +0000 (17:59 +0000)
committerGraham Leggett <minfrin@apache.org>
Thu, 8 Aug 2002 17:59:18 +0000 (17:59 +0000)
chain.
PR:
Obtained from:
Submitted by: Peter Van Biesen <peter.vanbiesen@vlafo.be>
Reviewed by: Graham Leggett <minfrin@apache.org>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96320 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/proxy/proxy_http.c

diff --git a/CHANGES b/CHANGES
index 8a8bcaef2b408214d104cf286e03f55421d939d6..9b407f6dba74c01b2c22b8e01678c178cef2be6b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.40
 
+  *) Fix proxy so that it is possible to access ftp: URLs via a proxy
+     chain. [Peter Van Biesen <peter.vanbiesen@vlafo.be>]
+
   *) mod-defalte now checks to make sure that 'gzip-only-text/html' is
      set to 1, so we can exclude things from the general case with
      browsermatch. [Ian Holsman, Andre Schild <A.Schild@aarboard.ch>]
index bce637b2c2e1a9411dacb15cfbef2e1a536de6b4..372565ab749abd0959146d6fd00e9be4ff21b0cf 100644 (file)
@@ -1032,10 +1032,10 @@ int ap_proxy_http_handler(request_rec *r, proxy_server_conf *conf,
         }
         is_ssl = 1;
     }
-    else if (strncasecmp(url, "http:", 5)) {
+    else if (!(strncasecmp(url, "http:", 5)==0 || (strncasecmp(url, "ftp:", 4)==0 && proxyname))) {
         ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
                      "proxy: HTTP: declining URL %s", url);
-        return DECLINED; /* only interested in HTTP */
+        return DECLINED; /* only interested in HTTP, or FTP via proxy */
     }
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
              "proxy: HTTP: serving URL %s", url);