mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
use right status code
This commit is contained in:
parent
36b1edca84
commit
2316936389
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user