Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit b404d074b2a6cb264f8b219eefb82f4bae0a40cc 1 parent f34cedc
David Beitey davidjb authored
Showing with 6 additions and 6 deletions.
  1. +2 −2 cherokee/header.c
  2. +4 −4 cherokee/http.c
4 cherokee/header.c
View
@@ -385,10 +385,10 @@ parse_method (cherokee_header_t *hdr, char *line, char *end, char **pointer)
detect_method (line, "REPORT", report)
break;
case 'V':
- detect_method (line, "VERSION_CONTROL", version_control)
+ detect_method (line, "VERSION-CONTROL", version_control)
break;
case 'B':
- detect_method (line, "BASELINE_CONTROL", baseline_control)
+ detect_method (line, "BASELINE-CONTROL", baseline_control)
break;
case 'I':
detect_method (line, "INVALID", invalid)
8 cherokee/http.c
View
@@ -65,7 +65,7 @@ cherokee_http_method_to_string (cherokee_http_method_t method, const char **str,
entry (http_unsubscribe, "UNSUBSCRIBE");
entry (http_report, "REPORT");
entry (http_patch, "PATCH");
- entry (http_version_control, "VERSION_CONTROL");
+ entry (http_version_control, "VERSION-CONTROL");
entry (http_checkout, "CHECKOUT");
entry (http_uncheckout, "UNCHECKOUT");
entry (http_checkin, "CHECKIN");
@@ -73,7 +73,7 @@ cherokee_http_method_to_string (cherokee_http_method_t method, const char **str,
entry (http_label, "LABEL");
entry (http_mkworkspace, "MKWORKSPACE");
entry (http_mkactivity, "MKACTIVITY");
- entry (http_baseline_control, "BASELINE_CONTROL");
+ entry (http_baseline_control, "BASELINE-CONTROL");
entry (http_merge, "MERGE");
entry (http_invalid, "INVALID");
@@ -135,7 +135,7 @@ cherokee_http_string_to_method (cherokee_buffer_t *string,
*method = http_report;
else if (cherokee_buffer_case_cmp_str (string, "patch") == 0)
*method = http_patch;
- else if (cherokee_buffer_case_cmp_str (string, "version_control") == 0)
+ else if (cherokee_buffer_case_cmp_str (string, "version-control") == 0)
*method = http_version_control;
else if (cherokee_buffer_case_cmp_str (string, "checkout") == 0)
*method = http_checkout;
@@ -151,7 +151,7 @@ cherokee_http_string_to_method (cherokee_buffer_t *string,
*method = http_mkworkspace;
else if (cherokee_buffer_case_cmp_str (string, "mkactivity") == 0)
*method = http_mkactivity;
- else if (cherokee_buffer_case_cmp_str (string, "baseline_control") == 0)
+ else if (cherokee_buffer_case_cmp_str (string, "baseline-control") == 0)
*method = http_baseline_control;
else if (cherokee_buffer_case_cmp_str (string, "merge") == 0)
*method = http_merge;
Please sign in to comment.
Something went wrong with that request. Please try again.