diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-15 18:23:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-15 18:23:40 +0000 |
commit | a841d419c9d230681a46900cac8629b576b2dfe8 (patch) | |
tree | 8cae473e4193d7dafd49ed8aa50c7e4612038489 /contrib | |
parent | 541b15df290f0aa40b71a85379f3faa909de30b6 (diff) | |
download | rspamd-a841d419c9d230681a46900cac8629b576b2dfe8.tar.gz rspamd-a841d419c9d230681a46900cac8629b576b2dfe8.zip |
[Rework] Finish http code split and cleanup
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/http-parser/http_parser.c | 3 | ||||
-rw-r--r-- | contrib/http-parser/http_parser.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/contrib/http-parser/http_parser.c b/contrib/http-parser/http_parser.c index 0e75d964b..c14ecc034 100644 --- a/contrib/http-parser/http_parser.c +++ b/contrib/http-parser/http_parser.c @@ -122,6 +122,7 @@ do { \ #define KEEP_ALIVE "keep-alive" #define CLOSE "close" +enum rspamd_http_message_type { HTTP_REQUEST, HTTP_RESPONSE, HTTP_BOTH }; static const char *method_strings[] = { @@ -1981,7 +1982,7 @@ http_method_str (enum http_method m) void -http_parser_init (http_parser *parser, enum http_parser_type t) +http_parser_init (http_parser *parser, int t) { void *data = parser->data; /* preserve application data */ memset(parser, 0, sizeof(*parser)); diff --git a/contrib/http-parser/http_parser.h b/contrib/http-parser/http_parser.h index e2a0b4985..7b4ac497c 100644 --- a/contrib/http-parser/http_parser.h +++ b/contrib/http-parser/http_parser.h @@ -124,8 +124,6 @@ enum http_method }; -enum http_parser_type { HTTP_REQUEST, HTTP_RESPONSE, HTTP_BOTH }; - /* Flag values for http_parser.flags field */ enum flags @@ -280,7 +278,7 @@ struct http_parser_url { */ unsigned long http_parser_version(void); -void http_parser_init(http_parser *parser, enum http_parser_type type); +void http_parser_init(http_parser *parser, int type); size_t http_parser_execute(http_parser *parser, |