]> git.kaiwu.me - nginx.git/commitdiff
allow the upstream modules to send a header only
authorIgor Sysoev <igor@sysoev.ru>
Mon, 15 Jan 2007 17:12:43 +0000 (17:12 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 15 Jan 2007 17:12:43 +0000 (17:12 +0000)
src/http/ngx_http_upstream.c

index 00fa4575eba0d9e636bed78de797d0919de1e402..f9d2482ea2277cc03ae8260f15ce0ec3acfbeafb 100644 (file)
@@ -1356,7 +1356,7 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
 
     rc = ngx_http_send_header(r);
 
-    if (rc == NGX_ERROR || rc > NGX_OK || r->post_action) {
+    if (rc == NGX_ERROR || rc > NGX_OK || r->post_action || r->header_only) {
         ngx_http_upstream_finalize_request(r, u, rc);
         return;
     }