From: William A. Rowe Jr Date: Wed, 11 Aug 2004 20:48:15 +0000 (+0000) Subject: Use ajp scheme when doing canonicalise. X-Git-Tag: post_ajp_proxy~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ee93490bb40e95709d38c4e20398cac0b1e6d2a;p=apache 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 --- 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;