Mercurial > hg > nginx-ranges
diff src/http/ngx_http_variables.c @ 433:9da1d9d94d18 NGINX_0_7_24
nginx 0.7.24
*) Feature: the "if_modified_since" directive.
*) Bugfix: nginx did not process a FastCGI server response, if the
server send too many messages to stderr before response.
*) Bugfix: the "$cookie_..." variables did not work in the SSI and the
perl module.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 01 Dec 2008 00:00:00 +0300 |
parents | 88d3e895bdf9 |
children | fd759445d8a8 |
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -25,6 +25,8 @@ static ngx_int_t ngx_http_variable_unkno 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 @@ ngx_http_get_variable(ngx_http_request_t 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; }