changeset 4548:4c1e6cef1453

If we inserted "Last-Modified" in r->headers_out.headers, don't forget to set the r->headers_out.last_modified pointer to it.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 21 Mar 2012 07:35:43 +0000
parents 2577c27cbffd
children f31162fefe01
files src/http/modules/ngx_http_headers_filter_module.c
diffstat 1 files changed, 2 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
@@ -385,6 +385,8 @@ ngx_http_set_last_modified(ngx_http_requ
             return NGX_ERROR;
         }
 
+        *old = h;
+
     } else {
         h = *old;