]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/acl/MethodData.cc
SourceFormat: enforcement
[thirdparty/squid.git] / src / acl / MethodData.cc
index b502f7be4872cf799ddf832e2adb36eabd25d97d..a5347442a5dbb602a45e4b49b74bbd894d844ee2 100644 (file)
@@ -40,6 +40,8 @@
 #include "HttpRequestMethod.h"
 #include "wordlist.h"
 
+int ACLMethodData::ThePurgeCount = 0;
+
 ACLMethodData::ACLMethodData() : values (NULL)
 {}
 
@@ -89,6 +91,8 @@ ACLMethodData::parse()
 
     for (Tail = &values; *Tail; Tail = &((*Tail)->next));
     while ((t = strtokFile())) {
+        if (strcmp(t, "PURGE") == 0)
+            ++ThePurgeCount; // configuration code wants to know
         CbDataList<HttpRequestMethod> *q = new CbDataList<HttpRequestMethod> (HttpRequestMethod(t, NULL));
         *(Tail) = q;
         Tail = &q->next;