]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix processing of /squid-internal- requests when running in proxy mode.
authorhno <>
Wed, 12 Mar 2003 06:27:37 +0000 (06:27 +0000)
committerhno <>
Wed, 12 Mar 2003 06:27:37 +0000 (06:27 +0000)
The ability to act as a web server for these requests accidently got lost
in the rproxy merge, and only worked for proxied or accelerated requests.

src/client_side.cc

index bd1fc29fb174434cc9d82bed937ebcb5f2ba952b..179a2eefee44a30d4b0d13fe6b061d2ad6d609ba 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.631 2003/03/10 04:56:37 robertc Exp $
+ * $Id: client_side.cc,v 1.632 2003/03/11 23:27:37 hno Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -1853,6 +1853,11 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p,
         prepareTransparentURL(conn, http, url, req_hdr);
     } else if (conn->port->accel) {
         prepareAcceleratedURL(conn, http, url, req_hdr);
+    } else if (internalCheck(url)) {
+        /* prepend our name & port */
+        http->uri = xstrdup(internalLocalUri(NULL, url));
+        http->flags.internal = 1;
+        http->flags.accel = 1;
     }
 
     if (!http->uri) {