comparison src/http/ngx_http_core_module.c @ 3662:a870639d2970

Fix processing error_page 502 504 /zero; location = /zero { return 204; } The bug has been introduced in r3634. The fix also allow to use: error_page 502 504 = /zero; location = /zero { return 200; } This case still does not work: error_page 502 504 /zero; location = /zero { return 200; }
author Igor Sysoev <igor@sysoev.ru>
date Wed, 30 Jun 2010 14:39:28 +0000
parents 446f611b0a79
children 4430d110293e
comparison
equal deleted inserted replaced
3661:8649a0c0f09d 3662:a870639d2970
1746 ngx_chain_t out; 1746 ngx_chain_t out;
1747 1747
1748 r->headers_out.status = status; 1748 r->headers_out.status = status;
1749 1749
1750 if (status == NGX_HTTP_NO_CONTENT) { 1750 if (status == NGX_HTTP_NO_CONTENT) {
1751 r->header_only = 1;
1751 return ngx_http_send_header(r); 1752 return ngx_http_send_header(r);
1752 } 1753 }
1753 1754
1754 if (ngx_http_complex_value(r, cv, &val) != NGX_OK) { 1755 if (ngx_http_complex_value(r, cv, &val) != NGX_OK) {
1755 return NGX_HTTP_INTERNAL_SERVER_ERROR; 1756 return NGX_HTTP_INTERNAL_SERVER_ERROR;