[nginx] svn commit: r4976 - trunk/src/http/modules

ru at nginx.com ru at nginx.com
Wed Dec 19 10:33:56 UTC 2012


Author: ru
Date: 2012-12-19 10:33:56 +0000 (Wed, 19 Dec 2012)
New Revision: 4976
URL: http://trac.nginx.org/nginx/changeset/4976/nginx

Log:
Let "add_header" affect 201 responses (ticket #125).


Modified:
   trunk/src/http/modules/ngx_http_headers_filter_module.c

Modified: trunk/src/http/modules/ngx_http_headers_filter_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_headers_filter_module.c	2012-12-19 10:30:45 UTC (rev 4975)
+++ trunk/src/http/modules/ngx_http_headers_filter_module.c	2012-12-19 10:33:56 UTC (rev 4976)
@@ -155,6 +155,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



More information about the nginx-devel mailing list