]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Correct ESI processing condition. Need to look for parsed header, not the header...
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 2 Nov 2010 01:03:15 +0000 (02:03 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 2 Nov 2010 01:03:15 +0000 (02:03 +0100)
src/esi/Esi.cc

index 57aaa3b6615d534a4bed55184eee77071a602ac5..88e85884ad203c20c6be53be81efb5400b583746 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);