diff src/http/ngx_http_variables.c @ 742:75d767d32624

nonexistent $sent_http_content has value of $sent_http_content_length or so
author Igor Sysoev <igor@sysoev.ru>
date Thu, 05 Oct 2006 15:09:26 +0000
parents 5e42c1615f4d
children 1606be879985
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -640,7 +640,7 @@ ngx_http_variable_unknown_header(ngx_htt
             }
         }
 
-        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;