diff src/http/ngx_http_request.c @ 3176:60bc5cc68d3b

log 499 instead 0, the bug was introduced in r3050
author Igor Sysoev <igor@sysoev.ru>
date Wed, 30 Sep 2009 12:05:08 +0000
parents 90d6b878481f
children 0e420f3f8e18
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2048,6 +2048,10 @@ ngx_http_terminate_request(ngx_http_requ
     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;