summaryrefslogtreecommitdiff
path: root/sapi/cli/php_http_parser.h
diff options
context:
space:
mode:
authorNiklas Lindgren <nikc@iki.fi>2012-09-12 19:34:59 +0300
committerStanislav Malyshev <stas@php.net>2012-09-15 23:11:12 -0700
commit27542db4e70c388346fc9983b9c7d58248aaa52d (patch)
tree9c4dfb7744f0c02e19f2c8b7335cff66909bb2ca /sapi/cli/php_http_parser.h
parent56425ee61080c5e666613e88777ee665e858b367 (diff)
downloadphp-git-27542db4e70c388346fc9983b9c7d58248aaa52d.tar.gz
Respond with 501 to unknown request methods
Fixed typo Moved 501 response from dispatch to event_read_request Return return value of send_error_page
Diffstat (limited to 'sapi/cli/php_http_parser.h')
-rw-r--r--sapi/cli/php_http_parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/cli/php_http_parser.h b/sapi/cli/php_http_parser.h
index 7e72b78d7d..0f6c13dd35 100644
--- a/sapi/cli/php_http_parser.h
+++ b/sapi/cli/php_http_parser.h
@@ -102,6 +102,8 @@ enum php_http_method
, PHP_HTTP_NOTIFY
, PHP_HTTP_SUBSCRIBE
, PHP_HTTP_UNSUBSCRIBE
+ /* unknown, not implemented */
+ , PHP_HTTP_NOT_IMPLEMENTED
};