From 0e7866eaaa3a6aeb1fb76e5bd171a2e03ca3dcb6 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Tue, 14 Nov 2000 22:28:56 +0000 Subject: [PATCH] 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 --- modules/proxy/mod_proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.50.1