]> git.kaiwu.me - nginx.git/commitdiff
If we inserted "Last-Modified" in r->headers_out.headers, don't
authorRuslan Ermilov <ru@nginx.com>
Wed, 21 Mar 2012 07:35:43 +0000 (07:35 +0000)
committerRuslan Ermilov <ru@nginx.com>
Wed, 21 Mar 2012 07:35:43 +0000 (07:35 +0000)
forget to set the r->headers_out.last_modified pointer to it.

src/http/modules/ngx_http_headers_filter_module.c

index d061ffff3a440b7683c85d27d0e0ff4c95f7f40a..93899343437b37309a6f9523b48b9e27b4b6b59e 100644 (file)
@@ -385,6 +385,8 @@ ngx_http_set_last_modified(ngx_http_request_t *r, ngx_http_header_val_t *hv,
             return NGX_ERROR;
         }
 
+        *old = h;
+
     } else {
         h = *old;