From c49ea300ddc0dd367d88e657f8956ac08f315b9d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 11 Mar 2015 14:18:19 +0000 Subject: [PATCH] Distinguish RSPAMC from SPAMC. --- contrib/http-parser/http_parser.c | 2 ++ contrib/http-parser/http_parser.h | 1 + 2 files changed, 3 insertions(+) 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 }; -- 2.39.5