Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
4547:2577c27cbffd | 4548:4c1e6cef1453 |
---|---|
383 h = ngx_list_push(&r->headers_out.headers); | 383 h = ngx_list_push(&r->headers_out.headers); |
384 if (h == NULL) { | 384 if (h == NULL) { |
385 return NGX_ERROR; | 385 return NGX_ERROR; |
386 } | 386 } |
387 | 387 |
388 *old = h; | |
389 | |
388 } else { | 390 } else { |
389 h = *old; | 391 h = *old; |
390 | 392 |
391 if (value->len == 0) { | 393 if (value->len == 0) { |
392 h->hash = 0; | 394 h->hash = 0; |