comparison src/http/modules/ngx_http_fastcgi_module.c @ 5575:d15822784cf9

Upstream: fix $upstream_status variable. Previously, upstream's status code was overwritten with cached response's status code when STALE or REVALIDATED response was sent to the client. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
author Piotr Sikora <piotr@cloudflare.com>
date Tue, 11 Feb 2014 21:54:42 -0800
parents e7b3b9855be8
children 22d485944c20
comparison
equal deleted inserted replaced
5574:cff36d2d7fe6 5575:d15822784cf9
1582 } else { 1582 } else {
1583 u->headers_in.status_n = 200; 1583 u->headers_in.status_n = 200;
1584 ngx_str_set(&u->headers_in.status_line, "200 OK"); 1584 ngx_str_set(&u->headers_in.status_line, "200 OK");
1585 } 1585 }
1586 1586
1587 if (u->state) { 1587 if (u->state && u->state->status == 0) {
1588 u->state->status = u->headers_in.status_n; 1588 u->state->status = u->headers_in.status_n;
1589 } 1589 }
1590 1590
1591 break; 1591 break;
1592 } 1592 }