Welcome! Log In Create A New Profile

Advanced

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

Ruslan Ermilov
May 13, 2013 08:46AM
details: http://hg.nginx.com/nginx/rev/07e515e65984
branches:
changeset: 5209:07e515e65984
user: Ruslan Ermilov <ru@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;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Ruslan Ermilov 1082 May 13, 2013 08:46AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 127
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready