diff options
author | Ryan Bloom <rbb@apache.org> | 2000-11-14 23:28:56 +0100 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2000-11-14 23:28:56 +0100 |
commit | b91450f7523d8ae6adc512d903b1642c7942aedd (patch) | |
tree | 5532e10c04be38cda3120e6f7c7d2deca6d7a36e | |
parent | Typo in example. (diff) | |
download | apache2-b91450f7523d8ae6adc512d903b1642c7942aedd.tar.xz apache2-b91450f7523d8ae6adc512d903b1642c7942aedd.zip |
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 <cliffwoolley@yahoo.com>
Reviewed by: Ryan Bloom
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86966 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/proxy/mod_proxy.c | 4 |
1 files 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 */ |