Mercurial > hg > nginx
comparison src/http/modules/ngx_http_headers_filter_module.c @ 4975:837d0a1bc31c
Let "add_header" affect 201 responses (ticket #125).
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 19 Dec 2012 10:33:56 +0000 |
parents | 9d9ee85db35d |
children | 7ed23dcfea3d |
comparison
equal
deleted
inserted
replaced
4974:9d9ee85db35d | 4975:837d0a1bc31c |
---|---|
153 conf = ngx_http_get_module_loc_conf(r, ngx_http_headers_filter_module); | 153 conf = ngx_http_get_module_loc_conf(r, ngx_http_headers_filter_module); |
154 | 154 |
155 if ((conf->expires == NGX_HTTP_EXPIRES_OFF && conf->headers == NULL) | 155 if ((conf->expires == NGX_HTTP_EXPIRES_OFF && conf->headers == NULL) |
156 || r != r->main | 156 || r != r->main |
157 || (r->headers_out.status != NGX_HTTP_OK | 157 || (r->headers_out.status != NGX_HTTP_OK |
158 && r->headers_out.status != NGX_HTTP_CREATED | |
158 && r->headers_out.status != NGX_HTTP_NO_CONTENT | 159 && r->headers_out.status != NGX_HTTP_NO_CONTENT |
159 && r->headers_out.status != NGX_HTTP_PARTIAL_CONTENT | 160 && r->headers_out.status != NGX_HTTP_PARTIAL_CONTENT |
160 && r->headers_out.status != NGX_HTTP_MOVED_PERMANENTLY | 161 && r->headers_out.status != NGX_HTTP_MOVED_PERMANENTLY |
161 && r->headers_out.status != NGX_HTTP_MOVED_TEMPORARILY | 162 && r->headers_out.status != NGX_HTTP_MOVED_TEMPORARILY |
162 && r->headers_out.status != NGX_HTTP_SEE_OTHER | 163 && r->headers_out.status != NGX_HTTP_SEE_OTHER |