diff options
author | Ruslan Ermilov <ru@nginx.com> | 2012-03-21 07:35:43 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2012-03-21 07:35:43 +0000 |
commit | d4b1e5f58b999ad9c36d150ceb4493662f0188dc (patch) | |
tree | 554f7ba8f50a71b6c198299c32114914051df802 /src | |
parent | 89467caf4389b2d4e190463e6b62d4a54c7495c2 (diff) | |
download | nginx-d4b1e5f58b999ad9c36d150ceb4493662f0188dc.tar.gz nginx-d4b1e5f58b999ad9c36d150ceb4493662f0188dc.zip |
If we inserted "Last-Modified" in r->headers_out.headers, don't
forget to set the r->headers_out.last_modified pointer to it.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_headers_filter_module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_headers_filter_module.c b/src/http/modules/ngx_http_headers_filter_module.c index d061ffff3..938993434 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 @@ ngx_http_set_last_modified(ngx_http_request_t *r, ngx_http_header_val_t *hv, return NGX_ERROR; } + *old = h; + } else { h = *old; |