From: Michael Wallner Date: Sun, 9 Oct 2005 10:12:09 +0000 (+0000) Subject: - fix "UNKNOWN" for unknown request methods X-Git-Tag: RELEASE_0_15_0~23 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c0cc1b8be318ca09e272a84b1cf7f589ad166773;p=m6w6%2Fext-http - fix "UNKNOWN" for unknown request methods - add test --- 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-- +