From: Ryan Bloom Date: Tue, 14 Nov 2000 22:28:56 +0000 (+0000) Subject: Get the proxy to look at requests that are being proxied again. In the X-Git-Tag: APACHE_2_0_ALPHA_8~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b91450f7523d8ae6adc512d903b1642c7942aedd;p=apache Get the proxy to look at requests that are being proxied again. In the big commit of the other day, a few !r->proxyreq's were changed to r->proxyreq, which made the proxy decline requests when it shouldn't have. Submitted by: Cliff Woolley Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86966 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index ac711f6066..a35ce9c97d 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -217,7 +217,7 @@ static int proxy_fixup(request_rec *r) { char *url, *p; - if (r->proxyreq || strncmp(r->filename, "proxy:", 6) != 0) + if (!r->proxyreq || strncmp(r->filename, "proxy:", 6) != 0) return DECLINED; url = &r->filename[6]; @@ -247,7 +247,7 @@ static int proxy_needsdomain(request_rec *r, const char *url, const char *domain const char *ref; /* We only want to worry about GETs */ - if (r->proxyreq || r->method_number != M_GET || !r->parsed_uri.hostname) + if (!r->proxyreq || r->method_number != M_GET || !r->parsed_uri.hostname) return DECLINED; /* If host does contain a dot already, or it is "localhost", decline */