From 63bf604d9effb51871f4ae4fcfe7a7cd52d5cbdd Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 May 2014 00:21:40 +0800 Subject: [PATCH] fix request method code --- include/r3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/r3.h b/include/r3.h index 959aff6..e38029f 100644 --- a/include/r3.h +++ b/include/r3.h @@ -168,7 +168,10 @@ route * r3_tree_match_route(const node *n, match_entry * entry); #define METHOD_GET 2 #define METHOD_POST 2<<1 -#define METHOD_PUT 2<<1 -#define METHOD_DELETE 2<<1 +#define METHOD_PUT 2<<2 +#define METHOD_DELETE 2<<3 +#define METHOD_PATCH 2<<4 +#define METHOD_HEAD 2<<5 +#define METHOD_OPTIONS 2<<6 #endif /* !R3_NODE_H */