# HG changeset patch # User Igor Sysoev # Date 1168881163 0 # Node ID bf1785dfb75f85dd5cdf7af8209ab5e889d4691f # Parent 5a86fcc480c69b258190e0d6fd7798ebda8dc543 allow the upstream modules to send a header only diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1356,7 +1356,7 @@ ngx_http_upstream_send_response(ngx_http 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; }