commit | d4b1e5f58b999ad9c36d150ceb4493662f0188dc | [log] [tgz] |
---|---|---|
author | Ruslan Ermilov <ru@nginx.com> | Wed Mar 21 07:35:43 2012 +0000 |
committer | Ruslan Ermilov <ru@nginx.com> | Wed Mar 21 07:35:43 2012 +0000 |
tree | 554f7ba8f50a71b6c198299c32114914051df802 | |
parent | 89467caf4389b2d4e190463e6b62d4a54c7495c2 [diff] |
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 index d061fff..9389934 100644 --- a/src/http/modules/ngx_http_headers_filter_module.c +++ b/src/http/modules/ngx_http_headers_filter_module.c
@@ -385,6 +385,8 @@ return NGX_ERROR; } + *old = h; + } else { h = *old;