From 31f063a5727317d1939c0cbf074520b48a4534da Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 21 Feb 2012 10:05:52 +0000 Subject: [PATCH] allow underscores in methods Fixes bug #59974 methodRegister doesn't allow "_" to be in method name --- http_request_method_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http_request_method_api.c b/http_request_method_api.c index 5be28c1..2f99a91 100644 --- a/http_request_method_api.c +++ b/http_request_method_api.c @@ -214,7 +214,8 @@ static STATUS _http_request_method_cncl_ex(const char *method_name, int method_n for (i = 0; i < method_name_len; ++i) { switch (method_name[i]) { case '-': - cncl[i] = '-'; + case '_': + cncl[i] = method_name[i]; break; default: -- 2.30.2