Mercurial > hg > nginx
changeset 5051:4c3c409ed306 stable-1.2
Merge of r4976: let add_header affect 201 responses (ticket #125).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 11 Feb 2013 13:52:13 +0000 |
parents | f9a29f401770 |
children | f2dcb25987df |
files | src/http/modules/ngx_http_headers_filter_module.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_headers_filter_module.c Mon Feb 11 12:37:06 2013 +0000 +++ b/src/http/modules/ngx_http_headers_filter_module.c Mon Feb 11 13:52:13 2013 +0000 @@ -149,6 +149,7 @@ if ((conf->expires == NGX_HTTP_EXPIRES_OFF && conf->headers == NULL) || r != r->main || (r->headers_out.status != NGX_HTTP_OK + && r->headers_out.status != NGX_HTTP_CREATED && r->headers_out.status != NGX_HTTP_NO_CONTENT && r->headers_out.status != NGX_HTTP_PARTIAL_CONTENT && r->headers_out.status != NGX_HTTP_MOVED_PERMANENTLY