mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 06:46:16 +08:00
log 499 instead 0, the bug was introduced in r3050
This commit is contained in:
parent
13210a18f4
commit
689064b91a
@ -2048,6 +2048,10 @@ ngx_http_terminate_request(ngx_http_request_t *r, ngx_int_t rc)
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http terminate request count:%d", mr->count);
|
||||
|
||||
if (rc > 0 && (mr->headers_out.status == 0 || mr->connection->sent == 0)) {
|
||||
mr->headers_out.status = rc;
|
||||
}
|
||||
|
||||
cln = mr->cleanup;
|
||||
mr->cleanup = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user