wasn't correctly setting method for PROPPATCH and PROPFIND

event_stream
Ryan Dahl 15 years ago
parent 9c059ec60d
commit 0d6cebd70b

@ -537,7 +537,7 @@ size_t parse (http_parser *parser, const char *data, size_t len, int start_state
case 8: case 8:
if (strncmp(parser->buffer, "PROPFIND", 8) == 0) { if (strncmp(parser->buffer, "PROPFIND", 8) == 0) {
parser->method = HTTP_OPTIONS; parser->method = HTTP_PROPFIND;
break; break;
} }
@ -545,7 +545,7 @@ size_t parse (http_parser *parser, const char *data, size_t len, int start_state
case 9: case 9:
if (strncmp(parser->buffer, "PROPPATCH", 9) == 0) { if (strncmp(parser->buffer, "PROPPATCH", 9) == 0) {
parser->method = HTTP_OPTIONS; parser->method = HTTP_PROPPATCH;
break; break;
} }

Loading…
Cancel
Save