com php-src: Add comment about SEARCH HTTP Verb being possible as well: sapi/cli/php_http_parser.c
| From: | JulienPauli | Date: | Tue, 12 May 2015 09:24:27 +0000 |
| Subject: | com php-src: Add comment about SEARCH HTTP Verb being possible as well: sapi/cli/php_http_parser.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86678@lists.php.net to get a copy of this message | ||
Commit: 7a57061a1f56db416fbe4d6f4e01cc0aa5a51c61
Author: Mats Lindh <mats@lindh.no> Thu, 16 Apr 2015 14:06:43 +0200
Committer: Julien Pauli <jpauli@php.net> Tue, 12 May 2015 11:24:27 +0200
Parents: b6018144cd0ebfefe5662eb6a1dea6604ef1775f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7a57061a1f56db416fbe4d6f4e01cc0aa5a51c61
Log:
Add comment about SEARCH HTTP Verb being possible as well
Changed paths:
M sapi/cli/php_http_parser.c
Diff:
diff --git a/sapi/cli/php_http_parser.c b/sapi/cli/php_http_parser.c
index 558a4ef..653c54c 100644
--- a/sapi/cli/php_http_parser.c
+++ b/sapi/cli/php_http_parser.c
@@ -589,7 +589,7 @@ size_t php_http_parser_execute (php_http_parser *parser,
case 'O': parser->method = PHP_HTTP_OPTIONS; break;
case 'P': parser->method = PHP_HTTP_POST; /* or PROPFIND or PROPPATCH or PUT
*/ break;
case 'R': parser->method = PHP_HTTP_REPORT; break;
- case 'S': parser->method = PHP_HTTP_SUBSCRIBE; break;
+ case 'S': parser->method = PHP_HTTP_SUBSCRIBE; /* or SEARCH */ break;
case 'T': parser->method = PHP_HTTP_TRACE; break;
case 'U': parser->method = PHP_HTTP_UNLOCK; /* or UNSUBSCRIBE */ break;
default: parser->method = PHP_HTTP_NOT_IMPLEMENTED; break;
@@ -597,7 +597,6 @@ size_t php_http_parser_execute (php_http_parser *parser,
state = s_req_method;
break;
}
-
case s_req_method:
{
const char *matcher;