]> git.kaiwu.me - nginx.git/commitdiff
nonexistent $sent_http_content has value of $sent_http_content_length or so
authorIgor Sysoev <igor@sysoev.ru>
Thu, 5 Oct 2006 15:09:26 +0000 (15:09 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 5 Oct 2006 15:09:26 +0000 (15:09 +0000)
src/http/ngx_http_variables.c

index e6db0b7c6c3f5eebbc51dd49b87d7379919ec7f1..374a29e709c111305b0e2aba47201ae149f715ac 100644 (file)
@@ -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;