From c0cc1b8be318ca09e272a84b1cf7f589ad166773 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 9 Oct 2005 10:12:09 +0000 Subject: [PATCH] - fix "UNKNOWN" for unknown request methods - add test --- http_request_method_api.c | 2 +- tests/request_methods.phpt | 143 +++++++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 tests/request_methods.phpt diff --git a/http_request_method_api.c b/http_request_method_api.c index a2197c6..595a1de 100644 --- a/http_request_method_api.c +++ b/http_request_method_api.c @@ -35,7 +35,7 @@ ZEND_EXTERN_MODULE_GLOBALS(http); /* {{{ char *http_request_methods[] */ static const char *const http_request_methods[] = { - "UNKOWN", + "UNKNOWN", /* HTTP/1.1 */ "GET", "HEAD", diff --git a/tests/request_methods.phpt b/tests/request_methods.phpt new file mode 100644 index 0000000..6efb865 --- /dev/null +++ b/tests/request_methods.phpt @@ -0,0 +1,143 @@ +--TEST-- +request methods +--SKIPIF-- + +--FILE-- +