comparison src/http/modules/ngx_http_headers_filter_module.c @ 2605:2a301c21256a

fix add_header Last-Modified "", broken in r2589
author Igor Sysoev <igor@sysoev.ru>
date Thu, 26 Mar 2009 13:34:37 +0000
parents a6954ce88b80
children c7d57b539248
comparison
equal deleted inserted replaced
2604:2a35ed59827d 2605:2a301c21256a
606 hv->handler = set[i].handler; 606 hv->handler = set[i].handler;
607 607
608 break; 608 break;
609 } 609 }
610 610
611 if (value[2].len == 0) {
612 ngx_memzero(&hv->value, sizeof(ngx_http_complex_value_t));
613 return NGX_CONF_OK;
614 }
615
611 ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t)); 616 ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t));
612 617
613 ccv.cf = cf; 618 ccv.cf = cf;
614 ccv.value = &value[2]; 619 ccv.value = &value[2];
615 ccv.complex_value = &hv->value; 620 ccv.complex_value = &hv->value;