Upstream: allow to intercept responses with status 300.

This fixes an omission made in 9e7926763f87 where all 3XX statuses
were allowed for "error_page".
This commit is contained in:
Ruslan Ermilov 2013-05-13 14:10:22 +04:00
parent b5fd7d5041
commit dcdf9eed8d

View 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;