changeset 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 63a08390a8a2
children 543434c675e9
files src/http/ngx_http_variables.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;