Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Ensure to test SEARCH, PURGE and MKCALENDAR #241

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions http_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,7 @@ size_t http_parser_execute (http_parser *parser,
case 'M': parser->method = HTTP_MKCOL; /* or MOVE, MKACTIVITY, MERGE, M-SEARCH, MKCALENDAR */ break;
case 'N': parser->method = HTTP_NOTIFY; break;
case 'O': parser->method = HTTP_OPTIONS; break;
case 'P': parser->method = HTTP_POST;
/* or PROPFIND|PROPPATCH|PUT|PATCH|PURGE */
break;
case 'P': parser->method = HTTP_POST; /* or PROPFIND, PROPPATCH, PUT, PATCH, PURGE */ break;

This comment was marked as off-topic.

This comment was marked as off-topic.

case 'R': parser->method = HTTP_REPORT; break;
case 'S': parser->method = HTTP_SUBSCRIBE; /* or SEARCH */ break;
case 'T': parser->method = HTTP_TRACE; break;
Expand Down
3 changes: 3 additions & 0 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3690,6 +3690,7 @@ main (void)
"MOVE",
"PROPFIND",
"PROPPATCH",
"SEARCH",
"UNLOCK",
"REPORT",
"MKACTIVITY",
Expand All @@ -3700,6 +3701,8 @@ main (void)
"SUBSCRIBE",
"UNSUBSCRIBE",
"PATCH",
"PURGE",
"MKCALENDAR",
0 };
const char **this_method;
for (this_method = all_methods; *this_method; this_method++) {
Expand Down