aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2013-05-13 14:10:22 +0400
committerRuslan Ermilov <ru@nginx.com>2013-05-13 14:10:22 +0400
commitdcdf9eed8d7f8f3021a8edab9716b3222b7597b5 (patch)
tree1ebd8c6f3fea01ad276afce0c68fde0225306ec1 /src/http/ngx_http_upstream.c
parentb5fd7d5041f80f5c920b0954b5036a8ec1dc06f9 (diff)
downloadnginx-dcdf9eed8d7f8f3021a8edab9716b3222b7597b5.tar.gz
nginx-dcdf9eed8d7f8f3021a8edab9716b3222b7597b5.zip
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 (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 45e2eb7b9..4183d9d68 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -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;