From e31e90b3e10ca2afafccae9a57910133d93b2d37 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 19 May 2005 13:25:22 +0000 Subject: nginx-0.1.32-RELEASE import *) Bugfix: the arguments were omitted in the redirects, issued by the "rewrite" directive; the bug had appeared in 0.1.29. *) Feature: the "if" directive supports the captures in regular expressions. *) Feature: the "set" directive supports the variables and the captures of regular expressions. *) Feature: the "X-Accel-Redirect" response header line is supported in proxy and FastCGI mode. --- src/http/ngx_http_script.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/http/ngx_http_script.h') diff --git a/src/http/ngx_http_script.h b/src/http/ngx_http_script.h index 21927c1f7..cf80f22b4 100644 --- a/src/http/ngx_http_script.h +++ b/src/http/ngx_http_script.h @@ -19,7 +19,7 @@ typedef struct { ngx_http_variable_value_t *sp; ngx_str_t buf; - ngx_str_t *line; + ngx_str_t line; /* the start of the rewritten arguments */ u_char *args; @@ -29,6 +29,7 @@ typedef struct { unsigned log:1; int *captures; + ngx_uint_t ncaptures; ngx_int_t status; ngx_http_request_t *request; @@ -128,6 +129,12 @@ typedef struct { } ngx_http_script_if_code_t; +typedef struct { + ngx_http_script_code_pt code; + ngx_array_t *lengths; +} ngx_http_script_complex_value_code_t; + + typedef struct { ngx_http_script_code_pt code; uintptr_t value; @@ -155,6 +162,7 @@ void ngx_http_script_copy_capture_code(ngx_http_script_engine_t *e); void ngx_http_script_start_args_code(ngx_http_script_engine_t *e); void ngx_http_script_return_code(ngx_http_script_engine_t *e); void ngx_http_script_if_code(ngx_http_script_engine_t *e); +void ngx_http_script_complex_value_code(ngx_http_script_engine_t *e); void ngx_http_script_value_code(ngx_http_script_engine_t *e); void ngx_http_script_set_var_code(ngx_http_script_engine_t *e); void ngx_http_script_var_code(ngx_http_script_engine_t *e); -- cgit