]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed SMP cache mgr request handling.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 2 Jan 2013 18:50:24 +0000 (11:50 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 2 Jan 2013 18:50:24 +0000 (11:50 -0700)
Coordinator could not successfully parse any SMP cache manager request since
r12410 "Polish: Http::MethodType upgrade" because the parsing code assumed the
presence of the request method ID field that was no longer added by the
request packing code.

src/mgr/ActionParams.cc

index 75d48aed4bf3198b8972ffab608f4ecf6b90daf8..fa71307f24afef89111cdc3f38b9f4aeebe4b7fb 100644 (file)
@@ -16,8 +16,6 @@ Mgr::ActionParams::ActionParams(const Ipc::TypedMsgHdr &msg)
 {
     msg.getString(httpUri);
 
-    const int m = msg.getInt();
-    Must(Http::METHOD_NONE <= m && m < Http::METHOD_ENUM_END);
     String method;
     msg.getString(method);
     httpMethod = HttpRequestMethod(method.termedBuf(), NULL);