From: Francesco Chemolli Date: Sat, 27 Oct 2012 13:04:38 +0000 (+0200) Subject: Fix ecap after Http::MethodType change X-Git-Tag: SQUID_3_4_0_1~545 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23ef3d701ec706d8af089965690bddd8296f1aa5;p=thirdparty%2Fsquid.git Fix ecap after Http::MethodType change --- diff --git a/src/adaptation/ecap/MessageRep.cc b/src/adaptation/ecap/MessageRep.cc index b3b4fa2e64..9e71ba6189 100644 --- a/src/adaptation/ecap/MessageRep.cc +++ b/src/adaptation/ecap/MessageRep.cc @@ -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(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());