]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix ecap after Http::MethodType change
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 27 Oct 2012 13:04:38 +0000 (15:04 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 27 Oct 2012 13:04:38 +0000 (15:04 +0200)
src/adaptation/ecap/MessageRep.cc

index b3b4fa2e64b526881c5b1d6ce9fbadf5868dd50d..9e71ba618994ce9007db6fcabf1070baf8a70b22 100644 (file)
@@ -225,8 +225,8 @@ Adaptation::Ecap::RequestLineRep::method(const Name &aMethod)
 {
     if (aMethod.assignedHostId()) {
         const int id = aMethod.hostId();
-        Must(METHOD_NONE < id && id < METHOD_ENUM_END);
-        Must(id != METHOD_OTHER);
+        Must(Http::METHOD_NONE < id && id < Http::METHOD_ENUM_END);
+        Must(id != Http::METHOD_OTHER);
         theMessage.method = HttpRequestMethod(static_cast<Http::MethodType>(id));
     } else {
         const std::string &image = aMethod.image();
@@ -239,19 +239,19 @@ Adaptation::Ecap::RequestLineRep::Name
 Adaptation::Ecap::RequestLineRep::method() const
 {
     switch (theMessage.method.id()) {
-    case METHOD_GET:
+    case Http::METHOD_GET:
         return libecap::methodGet;
-    case METHOD_POST:
+    case Http::METHOD_POST:
         return libecap::methodPost;
-    case METHOD_PUT:
+    case Http::METHOD_PUT:
         return libecap::methodPut;
-    case METHOD_HEAD:
+    case Http::METHOD_HEAD:
         return libecap::methodHead;
-    case METHOD_CONNECT:
+    case Http::METHOD_CONNECT:
         return libecap::methodConnect;
-    case METHOD_DELETE:
+    case Http::METHOD_DELETE:
         return libecap::methodDelete;
-    case METHOD_TRACE:
+    case Http::METHOD_TRACE:
         return libecap::methodTrace;
     default:
         return Name(theMessage.method.image());