comparison src/http/ngx_http_upstream.c @ 5209:07e515e65984

Upstream: allow to intercept responses with status 300. This fixes an omission made in 9e7926763f87 where all 3XX statuses were allowed for "error_page".
author Ruslan Ermilov <ru@nginx.com>
date Mon, 13 May 2013 14:10:22 +0400
parents f6bbe77794aa
children 4a40163772a1
comparison
equal deleted inserted replaced
5204:a64c8a5da336 5209:07e515e65984
1658 return; 1658 return;
1659 } 1659 }
1660 1660
1661 /* rc == NGX_OK */ 1661 /* rc == NGX_OK */
1662 1662
1663 if (u->headers_in.status_n > NGX_HTTP_SPECIAL_RESPONSE) { 1663 if (u->headers_in.status_n >= NGX_HTTP_SPECIAL_RESPONSE) {
1664 1664
1665 if (r->subrequest_in_memory) { 1665 if (r->subrequest_in_memory) {
1666 u->buffer.last = u->buffer.pos; 1666 u->buffer.last = u->buffer.pos;
1667 } 1667 }
1668 1668