From d49d53fd499f7cf68fdfcc7d0c9d401e4e4407fb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 30 Jun 2010 00:54:03 -0700 Subject: [PATCH] Expose new HTTP methods --- src/node_http_parser.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index 06bd05fc87b..61992e0882b 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -52,6 +52,10 @@ static Persistent move_sym; static Persistent propfind_sym; static Persistent proppatch_sym; static Persistent unlock_sym; +static Persistent report_sym; +static Persistent mkactivity_sym; +static Persistent checkout_sym; +static Persistent merge_sym; static Persistent unknown_method_sym; static Persistent method_sym; @@ -121,6 +125,10 @@ method_to_str(unsigned short m) { case HTTP_PROPFIND: return propfind_sym; case HTTP_PROPPATCH: return proppatch_sym; case HTTP_UNLOCK: return unlock_sym; + case HTTP_REPORT: return report_sym; + case HTTP_MKACTIVITY: return mkactivity_sym; + case HTTP_CHECKOUT: return checkout_sym; + case HTTP_MERGE: return merge_sym; default: return unknown_method_sym; } } @@ -437,6 +445,10 @@ void InitHttpParser(Handle target) { propfind_sym = NODE_PSYMBOL("PROPFIND"); proppatch_sym = NODE_PSYMBOL("PROPPATCH"); unlock_sym = NODE_PSYMBOL("UNLOCK"); + report_sym = NODE_PSYMBOL("REPORT"); + mkactivity_sym = NODE_PSYMBOL("MKACTIVITY"); + checkout_sym = NODE_PSYMBOL("CHECKOUT"); + merge_sym = NODE_PSYMBOL("MERGE"); unknown_method_sym = NODE_PSYMBOL("UNKNOWN_METHOD"); method_sym = NODE_PSYMBOL("method");