]> git.kaiwu.me - nginx.git/commitdiff
use right status code
authorIgor Sysoev <igor@sysoev.ru>
Mon, 8 Jan 2007 18:22:06 +0000 (18:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 8 Jan 2007 18:22:06 +0000 (18:22 +0000)
src/http/ngx_http_request.c

index f6dcd6a5693181579e45c6b24b762fca214f00ac..88a0d095067534d963a7861b20efc2f6eee92480 100644 (file)
@@ -976,10 +976,10 @@ ngx_http_read_request_header(ngx_http_request_t *r)
     }
 
     if (n == 0 || n == NGX_ERROR) {
-        c->error = rev->error;
+        c->error = 1;
         c->log->action = "sending response to client";
 
-        ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST);
+        ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);
         return NGX_ERROR;
     }