use right status code

This commit is contained in:
Igor Sysoev 2007-01-08 18:22:06 +00:00
parent 36b1edca84
commit 2316936389

View 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;
}