]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
set http->internal for proxy requests too
authorwessels <>
Wed, 8 Apr 1998 04:37:44 +0000 (04:37 +0000)
committerwessels <>
Wed, 8 Apr 1998 04:37:44 +0000 (04:37 +0000)
src/client_side.cc

index cd7887b0220d0677f687f830c6ce1ced145ea5b0..55d9c8644cf1091e88ba0e21bf69445c9fcd108c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.258 1998/04/07 04:50:46 wessels Exp $
+ * $Id: client_side.cc,v 1.259 1998/04/07 22:37:44 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1828,6 +1828,11 @@ clientReadRequest(int fd, void *data)
                safe_free(headers);
                break;
            }
+           if (0 == http->internal)
+               if (0 == strncmp(request->urlpath, "/squid-internal/", 16))
+                   if (0 == strcasecmp(request->host, getMyHostname())
+                       if (request->port == Config.Port.http->i)
+                           http->internal = 1;
            safe_free(http->log_uri);
            http->log_uri = xstrdup(urlCanonicalClean(request));
            request->client_addr = conn->peer.sin_addr;