mirror of
https://github.com/nginx/nginx.git
synced 2026-08-28 12:45:21 +00:00
allow the upstream modules to send a header only
This commit is contained in:
parent
4502bf57b3
commit
8488a1ce11
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue