X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_method_api.c;h=1d73ddda5b4a447acea1b2f7ea54ebdfe4d9485a;hp=498dbe2f54b6644cc6fa0b9231c84dd4696fe35e;hb=2f39230d83bdf816dcae52c7e5a1b019347f0e7b;hpb=5773d11d8c9c28fb8b0e3389258f548fc4717892 diff --git a/http_request_method_api.c b/http_request_method_api.c index 498dbe2..1d73ddd 100644 --- a/http_request_method_api.c +++ b/http_request_method_api.c @@ -190,12 +190,11 @@ PHP_HTTP_API int _http_request_method_register(const char *method_name, int meth method = emalloc(method_name_len + 1); mconst = emalloc(method_name_len + 1); for (i = 0; i < method_name_len; ++i) { - switch (method_name[i]) - { + switch (method_name[i]) { case '-': method[i] = '-'; mconst[i] = '_'; - break; + break; default: if (!isalnum(method_name[i])) { @@ -205,7 +204,7 @@ PHP_HTTP_API int _http_request_method_register(const char *method_name, int meth return 0; } mconst[i] = method[i] = toupper(method_name[i]); - break; + break; } } method[method_name_len] = '\0';