Skip to content

Commit 6789886

Browse files
zhuizhuhaomengagentzh
authored andcommitted
bugfix: set_by_lua_block allowed more than one arg (in addition to the block).
1 parent 8c9968b commit 6789886

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_http_lua_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ static ngx_command_t ngx_http_lua_cmds[] = {
230230
(void *) ngx_http_lua_init_worker_by_file },
231231

232232
#if defined(NDK) && NDK
233-
/* set_by_lua $res { inline Lua code } [$arg1 [$arg2 [...]]] */
233+
/* set_by_lua_block $res { inline Lua code } */
234234
{ ngx_string("set_by_lua_block"),
235235
NGX_HTTP_SRV_CONF|NGX_HTTP_SIF_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF
236-
|NGX_CONF_1MORE|NGX_CONF_BLOCK,
236+
|NGX_CONF_TAKE1|NGX_CONF_BLOCK,
237237
ngx_http_lua_set_by_lua_block,
238238
NGX_HTTP_LOC_CONF_OFFSET,
239239
0,

0 commit comments

Comments
 (0)