]> git.kaiwu.me - nginx.git/commitdiff
Upstream: allow to intercept responses with status 300.
authorRuslan Ermilov <ru@nginx.com>
Mon, 13 May 2013 10:10:22 +0000 (14:10 +0400)
committerRuslan Ermilov <ru@nginx.com>
Mon, 13 May 2013 10:10:22 +0000 (14:10 +0400)
This fixes an omission made in 9e7926763f87 where all 3XX statuses
were allowed for "error_page".

src/http/ngx_http_upstream.c

index 45e2eb7b96127dee995063636c6afa23f6daebd6..4183d9d68683238966bf6ee3c790d66819626ef5 100644 (file)
@@ -1660,7 +1660,7 @@ ngx_http_upstream_process_header(ngx_http_request_t *r, ngx_http_upstream_t *u)
 
     /* 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;