]> source.dussan.org Git - rspamd.git/commitdiff
Distinguish RSPAMC from SPAMC.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 11 Mar 2015 14:18:19 +0000 (14:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 11 Mar 2015 15:19:56 +0000 (15:19 +0000)
contrib/http-parser/http_parser.c
contrib/http-parser/http_parser.h

index 129df138d57af95a73e6f18a3e6e44a7455a0de8..5295b6bdc6610cf2b63cff4dc6e6a8cdc19685c5 100644 (file)
@@ -1218,6 +1218,8 @@ size_t http_parser_execute (http_parser *parser,
       case s_req_spamc_start:
           switch (ch) {
           case 'S':
+                 parser->flags |= F_SPAMC;
+                 /* go forward */
           case 'R':
               parser->state = s_req_spamc;
               break;
index a322634f1d4516b47108b3cec2c267d9c7333b1a..f6f29b057f3692085d89337af5e585b1998bd9d1 100644 (file)
@@ -133,6 +133,7 @@ enum flags
   , F_TRAILING              = 1 << 3
   , F_UPGRADE               = 1 << 4
   , F_SKIPBODY              = 1 << 5
+  , F_SPAMC                 = 1 << 6
   };