diff options
author | Mats Lindh <mats@lindh.no> | 2015-04-16 13:36:01 +0200 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2015-05-12 11:24:27 +0200 |
commit | 98d015c5b7bcbf6b1a739839292b0faa8dae914d (patch) | |
tree | eb2201c9265bb1ae508f0b2fa3800da9ebf4b27d /sapi/cli/php_http_parser.c | |
parent | 7ff82e202049550212c48398a9b0919bfe33ed38 (diff) | |
download | php-git-98d015c5b7bcbf6b1a739839292b0faa8dae914d.tar.gz |
Add "SEARCH" as supported HTTP verb.
The "SEARCH" HTTP request method is described in RFC5323 as part of
WebDAV, and allows a client to initiate a server side search.
Diffstat (limited to 'sapi/cli/php_http_parser.c')
-rw-r--r-- | sapi/cli/php_http_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/cli/php_http_parser.c b/sapi/cli/php_http_parser.c index 31ae4167d1..558a4efec3 100644 --- a/sapi/cli/php_http_parser.c +++ b/sapi/cli/php_http_parser.c @@ -91,6 +91,7 @@ static const char *method_strings[] = , "MOVE" , "PROPFIND" , "PROPPATCH" + , "SEARCH" , "UNLOCK" , "REPORT" , "MKACTIVITY" @@ -630,6 +631,8 @@ size_t php_http_parser_execute (php_http_parser *parser, parser->method = PHP_HTTP_PUT; } else if (index == 1 && parser->method == PHP_HTTP_POST && ch == 'A') { parser->method = PHP_HTTP_PATCH; + } else if (index == 1 && parser->method == PHP_HTTP_SUBSCRIBE && ch == 'E') { + parser->method = PHP_HTTP_SEARCH; } else if (index == 2 && parser->method == PHP_HTTP_UNLOCK && ch == 'S') { parser->method = PHP_HTTP_UNSUBSCRIBE; } else if (index == 4 && parser->method == PHP_HTTP_PROPFIND && ch == 'P') { |