Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes a bug that was preventing the LOCK method from being recognized.

git-svn-id: svn://cherokee-project.com/cherokee/trunk@4990 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
commit ff092cd9f9447cedbe27ba29cccbc56bf6400acd 1 parent 6e1a928
@alobbs alobbs authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 cherokee/header.c
View
6 cherokee/header.c
@@ -282,8 +282,8 @@ parse_method (cherokee_header_t *hdr, char *line, char **pointer)
{
char chr = *line;
-#define detect_method(l,str,mthd) \
- if (cmp_str (line, (str" "))) { \
+#define detect_method(l,str,mthd) \
+ if (cmp_str (line, (str" "))) { \
hdr->method = http_ ## mthd; \
*pointer += sizeof(str); \
return ret_ok; \
@@ -330,7 +330,7 @@ parse_method (cherokee_header_t *hdr, char *line, char **pointer)
break;
case 'L':
detect_method (line, "LABEL", label)
- break;
+ else
detect_method (line, "LOCK", lock)
break;
case 'M':
Please sign in to comment.
Something went wrong with that request. Please try again.