branch off v1 as R_1_7
[m6w6/ext-http] / http_request_method_api.c
index 12b0170dc7394e9226680a9352e2b0e28033a079..2f99a9152259ccef5032d15ab2513b7a4e729216 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2010, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
@@ -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: