# HG changeset patch # User Ruslan Ermilov # Date 1332315343 0 # Node ID 4c1e6cef1453541608921855c96509e7dac88dbd # Parent 2577c27cbffddf3eb9c9955254d90b853dd7eab8 If we inserted "Last-Modified" in r->headers_out.headers, don't forget to set the r->headers_out.last_modified pointer to it. diff --git a/src/http/modules/ngx_http_headers_filter_module.c b/src/http/modules/ngx_http_headers_filter_module.c --- a/src/http/modules/ngx_http_headers_filter_module.c +++ b/src/http/modules/ngx_http_headers_filter_module.c @@ -385,6 +385,8 @@ ngx_http_set_last_modified(ngx_http_requ return NGX_ERROR; } + *old = h; + } else { h = *old;