]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Dec 2010 04:55:46 +0000 (21:55 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Dec 2010 04:55:46 +0000 (21:55 -0700)
Correct ESI processing condition. Need to look for parsed header, not the header mask (filtered)

src/esi/Esi.cc

index 472887abda54e34f692204ab1edb56c6262ce943..a456bdb5037a5275ef9040978dfdb77559dff3e3 100644 (file)
@@ -2429,7 +2429,7 @@ esiEnableProcessing (HttpReply *rep)
 {
     int rv = 0;
 
-    if (rep->header.has(HDR_SURROGATE_CONTROL)) {
+    if (rep->surrogate_control) {
         HttpHdrScTarget *sctusable = httpHdrScGetMergedTarget (rep->surrogate_control,
                                      Config.Accel.surrogate_id);