[nginx] Stub status: corrected the "stub_status" directive.

Ruslan Ermilov ru at nginx.com
Tue Aug 26 13:38:03 UTC 2014


details:   http://hg.nginx.org/nginx/rev/f5b612019042
branches:  
changeset: 5811:f5b612019042
user:      Ruslan Ermilov <ru at nginx.com>
date:      Tue Aug 26 17:35:23 2014 +0400
description:
Stub status: corrected the "stub_status" directive.

The "stub_status" directive does not require an argument.

diffstat:

 src/http/modules/ngx_http_stub_status_module.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5322be87fc02 -r f5b612019042 src/http/modules/ngx_http_stub_status_module.c
--- 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 char *ngx_http_set_stub_status(ng
 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,



More information about the nginx-devel mailing list