changeset 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 2a35ed59827d
children fd387fbb28c6
files src/http/modules/ngx_http_headers_filter_module.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_headers_filter_module.c
+++ b/src/http/modules/ngx_http_headers_filter_module.c
@@ -608,6 +608,11 @@ ngx_http_headers_add(ngx_conf_t *cf, ngx
         break;
     }
 
+    if (value[2].len == 0) {
+        ngx_memzero(&hv->value, sizeof(ngx_http_complex_value_t));
+        return NGX_CONF_OK;
+    }
+
     ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t));
 
     ccv.cf = cf;