]> granicus.if.org Git - apache/commitdiff
Get the proxy to look at requests that are being proxied again. In the
authorRyan Bloom <rbb@apache.org>
Tue, 14 Nov 2000 22:28:56 +0000 (22:28 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 14 Nov 2000 22:28:56 +0000 (22:28 +0000)
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

modules/proxy/mod_proxy.c

index ac711f6066a07ea9888f01566907012275a33609..a35ce9c97dfa901ed17496ddba23d71379aceb85 100644 (file)
@@ -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 */