X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_method_api.c;h=1d73ddda5b4a447acea1b2f7ea54ebdfe4d9485a;hb=6c4aac679c57cea2e3f7524974509595dc1a31a2;hp=498dbe2f54b6644cc6fa0b9231c84dd4696fe35e;hpb=1382fe5a3ed5209ab05745ca95495885e85ff2a0;p=m6w6%2Fext-http 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';