mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 04:39:00 +08:00
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:
parent
b5fd7d5041
commit
dcdf9eed8d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user