diff --git a/http_parser.c b/http_parser.c index c2904c4..8cd8d5b 100644 --- a/http_parser.c +++ b/http_parser.c @@ -537,7 +537,7 @@ size_t parse (http_parser *parser, const char *data, size_t len, int start_state case 8: if (strncmp(parser->buffer, "PROPFIND", 8) == 0) { - parser->method = HTTP_OPTIONS; + parser->method = HTTP_PROPFIND; break; } @@ -545,7 +545,7 @@ size_t parse (http_parser *parser, const char *data, size_t len, int start_state case 9: if (strncmp(parser->buffer, "PROPPATCH", 9) == 0) { - parser->method = HTTP_OPTIONS; + parser->method = HTTP_PROPPATCH; break; }