allow underscores in methods
authorMichael Wallner <mike@php.net>
Tue, 21 Feb 2012 10:05:52 +0000 (10:05 +0000)
committerMichael Wallner <mike@php.net>
Tue, 21 Feb 2012 10:05:52 +0000 (10:05 +0000)
Fixes bug #59974 methodRegister doesn't allow "_" to be in method name

http_request_method_api.c

index 5be28c17add665c621eac813d2e7fccc323bf1dd..2f99a9152259ccef5032d15ab2513b7a4e729216 100644 (file)
@@ -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: