diff src/http/modules/ngx_http_headers_filter_module.c @ 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 3cb5cf1e1439 4c3c409ed306
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;