summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-12-01 13:59:35 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-12-01 13:59:35 +0000
commitc6016b25cf3bc42cc13a3d8064bd0a420247e66a (patch)
tree2de4873d02a9e42020cf7f7c4ce97820ceb6741e
parent69b5a6ddfb5226c73b6931fdfc9d0b91ba6bbe5b (diff)
downloadnginx-c6016b25cf3bc42cc13a3d8064bd0a420247e66a.tar.gz
$cookie_... variable did not for SSI and perl
-rw-r--r--src/http/ngx_http_variables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index aad541e81..998c4ce35 100644
--- 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_unknown_header_in(ngx_http_request_t *r,
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 *r, ngx_str_t *name, ngx_uint_t key,
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;
}