diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-03-26 13:34:37 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-03-26 13:34:37 +0000 |
| commit | 7b7faed7d6baa6bafda991f159476518a6ac85f3 (patch) | |
| tree | ffe19a1f6c7f475cde2c999f1b21a1fd342dea6b | |
| parent | 2f1a2f3d19c252fa68b0c07aa32ca4910536f034 (diff) | |
| download | nginx-7b7faed7d6baa6bafda991f159476518a6ac85f3.tar.gz nginx-7b7faed7d6baa6bafda991f159476518a6ac85f3.tar.bz2 | |
fix add_header Last-Modified "", broken in r2589
| -rw-r--r-- | src/http/modules/ngx_http_headers_filter_module.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_headers_filter_module.c b/src/http/modules/ngx_http_headers_filter_module.c index 071ad4782..13cef0bea 100644 --- 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_command_t *cmd, void *conf) 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; |
