]> granicus.if.org Git - php/commitdiff
Add comment about SEARCH HTTP Verb being possible as well
authorMats Lindh <mats@lindh.no>
Thu, 16 Apr 2015 12:06:43 +0000 (14:06 +0200)
committerJulien Pauli <jpauli@php.net>
Tue, 12 May 2015 09:24:27 +0000 (11:24 +0200)
sapi/cli/php_http_parser.c

index 558a4efec3d9881a6daf89be757bb1e1214faae9..653c54c1a5203942844bf9ad5d8e249191b381e7 100644 (file)
@@ -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;