diff options
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r-- | src/http/ngx_http_script.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index f2f5a1ca8..13c57d6d9 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -1470,7 +1470,14 @@ ngx_http_script_return_code(ngx_http_script_engine_t *e) void ngx_http_script_break_code(ngx_http_script_engine_t *e) { - e->request->uri_changed = 0; + ngx_http_request_t *r; + + r = e->request; + + if (r->uri_changed) { + r->valid_location = 0; + r->uri_changed = 0; + } e->ip = ngx_http_script_exit; } |