diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-09-30 12:05:08 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-09-30 12:05:08 +0000 |
| commit | 689064b91adbf990d266e0e85b31d0b2d33b1515 (patch) | |
| tree | c04fc672f26ab6c736f3360fc3a8cef98d08f2a8 | |
| parent | 13210a18f4ba499208a466b8b5a4cc6f2f0fbbdd (diff) | |
| download | nginx-689064b91adbf990d266e0e85b31d0b2d33b1515.tar.gz nginx-689064b91adbf990d266e0e85b31d0b2d33b1515.tar.bz2 | |
log 499 instead 0, the bug was introduced in r3050
| -rw-r--r-- | src/http/ngx_http_request.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 48b57206b..7efa28246 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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; |
