[nginx] Upstream: allow to intercept responses with status 300.

Ruslan Ermilov ru at nginx.com
Mon May 13 12:45:49 UTC 2013


details:   http://hg.nginx.com/nginx/rev/07e515e65984
branches:  
changeset: 5209:07e515e65984
user:      Ruslan Ermilov <ru at nginx.com>
date:      Mon May 13 14:10:22 2013 +0400
description:
Upstream: allow to intercept responses with status 300.

This fixes an omission made in 9e7926763f87 where all 3XX statuses
were allowed for "error_page".

diffstat:

 src/http/ngx_http_upstream.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a64c8a5da336 -r 07e515e65984 src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c	Thu May 02 03:26:36 2013 -0700
+++ b/src/http/ngx_http_upstream.c	Mon May 13 14:10:22 2013 +0400
@@ -1660,7 +1660,7 @@ ngx_http_upstream_process_header(ngx_htt
 
     /* rc == NGX_OK */
 
-    if (u->headers_in.status_n > NGX_HTTP_SPECIAL_RESPONSE) {
+    if (u->headers_in.status_n >= NGX_HTTP_SPECIAL_RESPONSE) {
 
         if (r->subrequest_in_memory) {
             u->buffer.last = u->buffer.pos;



More information about the nginx-devel mailing list