comparison src/http/ngx_http_upstream.c @ 485:4ebe09b07e30 release-0.1.17

nginx-0.1.17-RELEASE import *) Change: the ngx_http_rewrite_module was rewritten from the scratch. Now it is possible to redirect, to return the error codes, to check the variables and referrers. The directives can be used inside locations. The redirect directive was canceled. *) Feature: the ngx_http_geo_module. *) Feature: the proxy_set_x_var and fastcgi_set_var directives. *) Bugfix: the location configuration with "=" modifier may be used in another location. *) Bugfix: the correct content type was set only for requests that use small caps letters in extension. *) Bugfix: if the proxy_pass or fastcgi_pass directives were set in the location, and access was denied, and the error was redirected to a static page, then the segmentation fault occurred. *) Bugfix: if in a proxied "Location" header was a relative URL, then a host name and a slash were added to them; the bug had appeared in 0.1.14. *) Bugfix: the system error message was not logged on Linux.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 03 Feb 2005 19:33:37 +0000
parents 621229427cba
children 31ff3e943e16
comparison
equal deleted inserted replaced
484:60452f1c0c62 485:4ebe09b07e30
662 662
663 663
664 static void ngx_http_upstream_send_response(ngx_http_request_t *r, 664 static void ngx_http_upstream_send_response(ngx_http_request_t *r,
665 ngx_http_upstream_t *u) 665 ngx_http_upstream_t *u)
666 { 666 {
667 ngx_int_t rc;
667 ngx_event_pipe_t *p; 668 ngx_event_pipe_t *p;
668 ngx_http_core_loc_conf_t *clcf; 669 ngx_http_core_loc_conf_t *clcf;
669 670
670 671 rc = u->send_header(r);
671 if (u->send_header(r) == NGX_HTTP_INTERNAL_SERVER_ERROR) { 672
672 ngx_http_upstream_finalize_request(r, u, 673 if (rc == NGX_ERROR || rc > NGX_OK) {
673 NGX_HTTP_INTERNAL_SERVER_ERROR); 674 ngx_http_upstream_finalize_request(r, u, rc);
674 return; 675 return;
675 } 676 }
676 677
677 u->header_sent = 1; 678 u->header_sent = 1;
678 679