diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-11 14:18:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-11 14:18:19 +0000 |
commit | ea26cfd92c60ff4b277144a7110f43e2dc2924f6 (patch) | |
tree | 68d5af593013686fc5c4ea25524320bf9a2f4990 /contrib/http-parser | |
parent | e1aaa10d62d8ec23b6980b78fdda3fa16b1f4f3c (diff) | |
download | rspamd-ea26cfd92c60ff4b277144a7110f43e2dc2924f6.tar.gz rspamd-ea26cfd92c60ff4b277144a7110f43e2dc2924f6.zip |
Distinguish RSPAMC from SPAMC.
Diffstat (limited to 'contrib/http-parser')
-rw-r--r-- | contrib/http-parser/http_parser.c | 2 | ||||
-rw-r--r-- | contrib/http-parser/http_parser.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/contrib/http-parser/http_parser.c b/contrib/http-parser/http_parser.c index 129df138d..5295b6bdc 100644 --- a/contrib/http-parser/http_parser.c +++ b/contrib/http-parser/http_parser.c @@ -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; diff --git a/contrib/http-parser/http_parser.h b/contrib/http-parser/http_parser.h index a322634f1..f6f29b057 100644 --- a/contrib/http-parser/http_parser.h +++ b/contrib/http-parser/http_parser.h @@ -133,6 +133,7 @@ enum flags , F_TRAILING = 1 << 3 , F_UPGRADE = 1 << 4 , F_SKIPBODY = 1 << 5 + , F_SPAMC = 1 << 6 }; |