diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 21d4ca34ee..7319afba73 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -97,9 +97,6 @@ typedef struct AppLayerMpms_ { } AppLayerMpms; AppLayerMpms app_mpms[] = { - { "http_method", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HMDMATCH, - PrefilterTxMethodRegister, 0}, - { "file_data", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_FILEDATA, PrefilterTxSmtpFiledataRegister, 0}, /* smtp */ { "file_data", 0, SIG_FLAG_TOCLIENT, DETECT_SM_LIST_FILEDATA, diff --git a/src/detect-http-method.c b/src/detect-http-method.c index 5167bad162..ed8cbd9a65 100644 --- a/src/detect-http-method.c +++ b/src/detect-http-method.c @@ -57,6 +57,7 @@ #include "app-layer-htp.h" #include "detect-http-method.h" +#include "detect-engine-hmd.h" #include "stream-tcp.h" @@ -80,6 +81,10 @@ void DetectHttpMethodRegister(void) sigmatch_table[DETECT_AL_HTTP_METHOD].flags |= SIGMATCH_NOOPT; sigmatch_table[DETECT_AL_HTTP_METHOD].flags |= SIGMATCH_PAYLOAD; + DetectMpmAppLayerRegister("http_method", SIG_FLAG_TOSERVER, + DETECT_SM_LIST_HMDMATCH, + PrefilterTxMethodRegister); + SCLogDebug("registering http_method rule option"); }