From: Michael Wallner Date: Tue, 21 Feb 2012 10:05:52 +0000 (+0000) Subject: allow underscores in methods X-Git-Tag: RELEASE_1_7_2~2 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=31f063a5727317d1939c0cbf074520b48a4534da allow underscores in methods Fixes bug #59974 methodRegister doesn't allow "_" to be in method name --- 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: