|
|
|
@ -137,6 +137,7 @@ static const char *method_strings[] =
|
|
|
|
|
, "MOVE"
|
|
|
|
|
, "PROPFIND"
|
|
|
|
|
, "PROPPATCH"
|
|
|
|
|
, "SEARCH"
|
|
|
|
|
, "UNLOCK"
|
|
|
|
|
, "REPORT"
|
|
|
|
|
, "MKACTIVITY"
|
|
|
|
@ -918,7 +919,7 @@ size_t http_parser_execute (http_parser *parser,
|
|
|
|
|
/* or PROPFIND|PROPPATCH|PUT|PATCH|PURGE */
|
|
|
|
|
break;
|
|
|
|
|
case 'R': parser->method = HTTP_REPORT; break;
|
|
|
|
|
case 'S': parser->method = HTTP_SUBSCRIBE; break;
|
|
|
|
|
case 'S': parser->method = HTTP_SUBSCRIBE; /* or SEARCH */ break;
|
|
|
|
|
case 'T': parser->method = HTTP_TRACE; break;
|
|
|
|
|
case 'U': parser->method = HTTP_UNLOCK; /* or UNSUBSCRIBE */ break;
|
|
|
|
|
default:
|
|
|
|
@ -965,6 +966,12 @@ size_t http_parser_execute (http_parser *parser,
|
|
|
|
|
} else {
|
|
|
|
|
goto error;
|
|
|
|
|
}
|
|
|
|
|
} else if (parser->method == HTTP_SUBSCRIBE) {
|
|
|
|
|
if (parser->index == 1 && ch == 'E') {
|
|
|
|
|
parser->method = HTTP_SEARCH;
|
|
|
|
|
} else {
|
|
|
|
|
goto error;
|
|
|
|
|
}
|
|
|
|
|
} else if (parser->index == 1 && parser->method == HTTP_POST) {
|
|
|
|
|
if (ch == 'R') {
|
|
|
|
|
parser->method = HTTP_PROPFIND; /* or HTTP_PROPPATCH */
|
|
|
|
|