diff options
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r-- | src/http/ngx_http_script.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 1918397fb..2169c87ed 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -792,6 +792,10 @@ ngx_http_script_regex_end_code(ngx_http_script_engine_t *e) } else { e->buf.len = e->pos - e->buf.data; + + if (!code->add_args) { + r->args.len = 0; + } } if (e->log) { |