X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_method_api.c;h=2f99a9152259ccef5032d15ab2513b7a4e729216;hp=12b0170dc7394e9226680a9352e2b0e28033a079;hb=refs%2Fheads%2Fv1.7.x;hpb=85f5451a3e9fad7cb9728ba5408b433fca22b44b diff --git a/http_request_method_api.c b/http_request_method_api.c index 12b0170..2f99a91 100644 --- a/http_request_method_api.c +++ b/http_request_method_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2007, Michael Wallner | + | Copyright (c) 2004-2010, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -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: