summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
};