aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/http-parser
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-18 13:46:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-18 13:47:52 +0100
commitf59abfc9be6018ceab2ea59a819ac22b8802eeac (patch)
treecb5a0f8ce1d1964c67109c5ae64b8f7f0ca19651 /contrib/http-parser
parent76a8573d219df1517d30391fb08800d0b7bb50ae (diff)
downloadrspamd-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.h5
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) \