Mercurial > hg > nginx
changeset 2359:4fee4ebbfb0b
$cookie_... variable did not for SSI and perl
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 01 Dec 2008 13:59:35 +0000 |
parents | ac0cf19eb582 |
children | 64854406b1f9 |
files | src/http/ngx_http_variables.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c Fri Nov 28 17:22:35 2008 +0000 +++ b/src/http/ngx_http_variables.c Mon Dec 01 13:59:35 2008 +0000 @@ -25,6 +25,8 @@ ngx_http_variable_value_t *v, uintptr_t data); static ngx_int_t ngx_http_variable_unknown_header_out(ngx_http_request_t *r, ngx_http_variable_value_t *v, uintptr_t data); +static ngx_int_t ngx_http_variable_cookie(ngx_http_request_t *r, + ngx_http_variable_value_t *v, uintptr_t data); static ngx_int_t ngx_http_variable_argument(ngx_http_request_t *r, ngx_http_variable_value_t *v, uintptr_t data); @@ -490,7 +492,7 @@ if (ngx_strncmp(name->data, "cookie_", 7) == 0) { - if (ngx_http_variable_argument(r, vv, (uintptr_t) name) == NGX_OK) { + if (ngx_http_variable_cookie(r, vv, (uintptr_t) name) == NGX_OK) { return vv; }