Merge of r4976: let add_header affect 201 responses (ticket #125).

This commit is contained in:
Maxim Dounin 2013-02-11 13:52:13 +00:00
parent 1b90454245
commit 7523ea7129
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ ngx_http_headers_filter(ngx_http_request_t *r)
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