From: hno <> Date: Wed, 12 Mar 2003 06:27:37 +0000 (+0000) Subject: Fix processing of /squid-internal- requests when running in proxy mode. X-Git-Tag: SQUID_3_0_PRE1~264 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f2749d7ffbad286e10c420b75706e101cc4b74f;p=thirdparty%2Fsquid.git Fix processing of /squid-internal- requests when running in proxy mode. 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. --- diff --git a/src/client_side.cc b/src/client_side.cc index bd1fc29fb1..179a2eefee 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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) {