Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 1031:bf1785dfb75f
allow the upstream modules to send a header only
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 15 Jan 2007 17:12:43 +0000 |
parents | a0310ac2814f |
children | e2a6ecc5a3ae |
comparison
equal
deleted
inserted
replaced
1030:5a86fcc480c6 | 1031:bf1785dfb75f |
---|---|
1354 ngx_pool_cleanup_file_t *clf; | 1354 ngx_pool_cleanup_file_t *clf; |
1355 ngx_http_core_loc_conf_t *clcf; | 1355 ngx_http_core_loc_conf_t *clcf; |
1356 | 1356 |
1357 rc = ngx_http_send_header(r); | 1357 rc = ngx_http_send_header(r); |
1358 | 1358 |
1359 if (rc == NGX_ERROR || rc > NGX_OK || r->post_action) { | 1359 if (rc == NGX_ERROR || rc > NGX_OK || r->post_action || r->header_only) { |
1360 ngx_http_upstream_finalize_request(r, u, rc); | 1360 ngx_http_upstream_finalize_request(r, u, rc); |
1361 return; | 1361 return; |
1362 } | 1362 } |
1363 | 1363 |
1364 u->header_sent = 1; | 1364 u->header_sent = 1; |