From 4ee7077b51017ee0102b5e1ba7221dfe5c72d847 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 5 Oct 2006 15:09:26 +0000 Subject: [PATCH] nonexistent $sent_http_content has value of $sent_http_content_length or so --- src/http/ngx_http_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index e6db0b7c6..374a29e70 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -640,7 +640,7 @@ ngx_http_variable_unknown_header(ngx_http_variable_value_t *v, ngx_str_t *var, } } - if (n + prefix == var->len) { + if (n + prefix == var->len && n == header[i].key.len) { v->len = header[i].value.len; v->valid = 1; v->no_cachable = 0;