diff src/http/modules/ngx_http_stub_status_module.c @ 5811:f5b612019042

Stub status: corrected the "stub_status" directive. The "stub_status" directive does not require an argument.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 26 Aug 2014 17:35:23 +0400
parents dc7c139fca21
children b1858fc47e3b
line wrap: on
line diff
--- a/src/http/modules/ngx_http_stub_status_module.c	Mon Aug 25 16:08:55 2014 +0400
+++ b/src/http/modules/ngx_http_stub_status_module.c	Tue Aug 26 17:35:23 2014 +0400
@@ -21,7 +21,7 @@
 static ngx_command_t  ngx_http_status_commands[] = {
 
     { ngx_string("stub_status"),
-      NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
+      NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_NOARGS|NGX_CONF_TAKE1,
       ngx_http_set_stub_status,
       0,
       0,