mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 04:39:00 +08:00
fix add_header Last-Modified "", broken in r2589
This commit is contained in:
parent
2f1a2f3d19
commit
7b7faed7d6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user