diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-18 13:46:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-18 13:47:52 +0100 |
commit | f59abfc9be6018ceab2ea59a819ac22b8802eeac (patch) | |
tree | cb5a0f8ce1d1964c67109c5ae64b8f7f0ca19651 /contrib/http-parser | |
parent | 76a8573d219df1517d30391fb08800d0b7bb50ae (diff) | |
download | rspamd-f59abfc9be6018ceab2ea59a819ac22b8802eeac.tar.gz rspamd-f59abfc9be6018ceab2ea59a819ac22b8802eeac.zip |
[Fix] Fix HTTP methods other than GET and POST
Diffstat (limited to 'contrib/http-parser')
-rw-r--r-- | contrib/http-parser/http_parser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/http-parser/http_parser.h b/contrib/http-parser/http_parser.h index bac517f51..792931588 100644 --- a/contrib/http-parser/http_parser.h +++ b/contrib/http-parser/http_parser.h @@ -112,7 +112,8 @@ typedef int (*http_cb) (http_parser*); XX(25, PURGE, PURGE) \ /* SPAMC compatibility */ \ XX(26, SYMBOLS, SYMBOLS) \ - XX(27, CHECK, CHECK) + XX(27, CHECK, CHECK) \ + XX(-1, INVALID, INVALID) \ enum http_method { @@ -137,7 +138,7 @@ enum flags /* Map for errno-related constants - * + * * The provided argument should be a macro that takes 2 arguments. */ #define HTTP_ERRNO_MAP(XX) \ |