From 0ee93490bb40e95709d38c4e20398cac0b1e6d2a Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 11 Aug 2004 20:48:15 +0000 Subject: [PATCH] Use ajp scheme when doing canonicalise. Submitted by: mturk git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104563 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_ajp.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/proxy/proxy_ajp.c b/modules/proxy/proxy_ajp.c index 2cd27c38b3..1cc368ff0a 100644 --- a/modules/proxy/proxy_ajp.c +++ b/modules/proxy/proxy_ajp.c @@ -55,13 +55,14 @@ int ap_proxy_ajp_canon(request_rec *r, char *url) "proxy: AJP: canonicalising URL %s", url); /* ap_port_of_scheme() */ - if (strncasecmp(url, "http:", 5) == 0) { + if (strncasecmp(url, "ajp:", 4) == 0) { + url += 4; + scheme = "ajp"; + } + /* XXX This is probably faulty */ + else if (strncasecmp(url, "ajps:", 5) == 0) { url += 5; - scheme = "http"; - } - else if (strncasecmp(url, "https:", 6) == 0) { - url += 6; - scheme = "https"; + scheme = "ajps"; } else { return DECLINED; -- 2.40.0