Skip to content
This repository
Browse code

Fix recognition of HTTP methods VERSION-CONTROL and BASELINE-CONTROL

  • Loading branch information...
commit b404d074b2a6cb264f8b219eefb82f4bae0a40cc 1 parent f34cedc
David Beitey authored August 29, 2012
4  cherokee/header.c
@@ -385,10 +385,10 @@ parse_method (cherokee_header_t *hdr, char *line, char *end, char **pointer)
385 385
 		detect_method (line, "REPORT", report)
386 386
 	        break;
387 387
 	case 'V':
388  
-		detect_method (line, "VERSION_CONTROL", version_control)
  388
+		detect_method (line, "VERSION-CONTROL", version_control)
389 389
 	        break;
390 390
 	case 'B':
391  
-		detect_method (line, "BASELINE_CONTROL", baseline_control)
  391
+		detect_method (line, "BASELINE-CONTROL", baseline_control)
392 392
 		break;
393 393
 	case 'I':
394 394
 		detect_method (line, "INVALID", invalid)
8  cherokee/http.c
@@ -65,7 +65,7 @@ cherokee_http_method_to_string (cherokee_http_method_t method, const char **str,
65 65
 		entry (http_unsubscribe, "UNSUBSCRIBE");
66 66
 		entry (http_report, "REPORT");
67 67
 		entry (http_patch, "PATCH");
68  
-		entry (http_version_control, "VERSION_CONTROL");
  68
+		entry (http_version_control, "VERSION-CONTROL");
69 69
 		entry (http_checkout, "CHECKOUT");
70 70
 		entry (http_uncheckout, "UNCHECKOUT");
71 71
 		entry (http_checkin, "CHECKIN");
@@ -73,7 +73,7 @@ cherokee_http_method_to_string (cherokee_http_method_t method, const char **str,
73 73
 		entry (http_label, "LABEL");
74 74
 		entry (http_mkworkspace, "MKWORKSPACE");
75 75
 		entry (http_mkactivity, "MKACTIVITY");
76  
-		entry (http_baseline_control, "BASELINE_CONTROL");
  76
+		entry (http_baseline_control, "BASELINE-CONTROL");
77 77
 		entry (http_merge, "MERGE");
78 78
 		entry (http_invalid, "INVALID");
79 79
 
@@ -135,7 +135,7 @@ cherokee_http_string_to_method (cherokee_buffer_t      *string,
135 135
 		*method = http_report;
136 136
 	else if (cherokee_buffer_case_cmp_str (string, "patch") == 0)
137 137
 		*method = http_patch;
138  
-	else if (cherokee_buffer_case_cmp_str (string, "version_control") == 0)
  138
+	else if (cherokee_buffer_case_cmp_str (string, "version-control") == 0)
139 139
 		*method = http_version_control;
140 140
 	else if (cherokee_buffer_case_cmp_str (string, "checkout") == 0)
141 141
 		*method = http_checkout;
@@ -151,7 +151,7 @@ cherokee_http_string_to_method (cherokee_buffer_t      *string,
151 151
 		*method = http_mkworkspace;
152 152
 	else if (cherokee_buffer_case_cmp_str (string, "mkactivity") == 0)
153 153
 		*method = http_mkactivity;
154  
-	else if (cherokee_buffer_case_cmp_str (string, "baseline_control") == 0)
  154
+	else if (cherokee_buffer_case_cmp_str (string, "baseline-control") == 0)
155 155
 		*method = http_baseline_control;
156 156
 	else if (cherokee_buffer_case_cmp_str (string, "merge") == 0)
157 157
 		*method = http_merge;

0 notes on commit b404d07

Please sign in to comment.
Something went wrong with that request. Please try again.