From: hno <> Date: Sun, 1 Sep 2002 19:54:16 +0000 (+0000) Subject: Make the "via on/off" directive --disable-http-violations dependent X-Git-Tag: SQUID_3_0_PRE1~797 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2f5c7444d9fc6a5c9f976045afcf5d0117d8887;p=thirdparty%2Fsquid.git Make the "via on/off" directive --disable-http-violations dependent --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index cd46dc45a1..b812970d87 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.409 2002/07/06 12:37:40 hno Exp $ + * $Id: cache_cf.cc,v 1.410 2002/09/01 13:54:16 hno Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -446,6 +446,12 @@ configDoConfigure(void) break; } } +#endif +#if !HTTP_VIOLATIONS + Config.onoff.via = 1; +#else + if (!Config.onoff.via) + debug(22, 1) ("WARNING: HTTP requires the use of Via\n"); #endif if (Config.Wais.relayHost) { if (Config.Wais.peer)