From 08e63d46ded2584fea1e7547fa2e958ab978f42f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 14 Aug 2006 15:09:38 +0000 Subject: nginx-0.3.58-RELEASE import *) Feature: the "error_page" directive supports the variables. *) Change: now the procfs interface instead of sysctl is used on Linux. *) Change: now the "Content-Type" header line is inherited from first response when the "X-Accel-Redirect" was used. *) Bugfix: the "error_page" directive did not redirect the 413 error. *) Bugfix: the trailing "?" did not remove old arguments if no new arguments were added to a rewritten URI. *) Bugfix: nginx could not run on 64-bit FreeBSD 7.0-CURRENT. --- src/http/ngx_http_script.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/ngx_http_script.c') 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) { -- cgit