summaryrefslogtreecommitdiffstats
path: root/contrib/http-parser
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-11 14:18:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-11 14:18:19 +0000
commitea26cfd92c60ff4b277144a7110f43e2dc2924f6 (patch)
tree68d5af593013686fc5c4ea25524320bf9a2f4990 /contrib/http-parser
parente1aaa10d62d8ec23b6980b78fdda3fa16b1f4f3c (diff)
downloadrspamd-ea26cfd92c60ff4b277144a7110f43e2dc2924f6.tar.gz
rspamd-ea26cfd92c60ff4b277144a7110f43e2dc2924f6.zip
Distinguish RSPAMC from SPAMC.
Diffstat (limited to 'contrib/http-parser')
-rw-r--r--contrib/http-parser/http_parser.c2
-rw-r--r--contrib/http-parser/http_parser.h1
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
};