nonexistent $sent_http_content has value of $sent_http_content_length or so

This commit is contained in:
Igor Sysoev 2006-10-05 15:09:26 +00:00
parent daec217def
commit 4ee7077b51

View 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;