projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fix switch() CS
[m6w6/ext-http]
/
http_request_method_api.c
diff --git
a/http_request_method_api.c
b/http_request_method_api.c
index 498dbe2f54b6644cc6fa0b9231c84dd4696fe35e..1d73ddda5b4a447acea1b2f7ea54ebdfe4d9485a 100644
(file)
--- 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) {
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] = '_';
case '-':
method[i] = '-';
mconst[i] = '_';
- break;
+
break;
default:
if (!isalnum(method_name[i])) {
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]);
return 0;
}
mconst[i] = method[i] = toupper(method_name[i]);
- break;
+
break;
}
}
method[method_name_len] = '\0';
}
}
method[method_name_len] = '\0';