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	Wed Mar 21 06:19:11 2012 +0000
+++ b/src/http/modules/ngx_http_headers_filter_module.c	Wed Mar 21 07:35:43 2012 +0000
@@ -385,6 +385,8 @@
             return NGX_ERROR;
         }
 
+        *old = h;
+
     } else {
         h = *old;