Mercurial > hg > nginx-vendor-0-7
diff src/http/ngx_http_request.c @ 272:29a6403156b0 NGINX_0_5_6
nginx 0.5.6
*) Change: now the ngx_http_index_module ignores all methods except the
GET, HEAD, and POST methods.
*) Feature: the ngx_http_limit_zone_module.
*) Feature: the $binary_remote_addr variable.
*) Feature: the "ssl_session_cache" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the DELETE method supports recursive removal.
*) Bugfix: the byte-ranges were transferred incorrectly if the
$r->sendfile() was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 09 Jan 2007 00:00:00 +0300 |
parents | 6eb1e38f0f1f |
children | c5c2b2883984 |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -976,10 +976,10 @@ ngx_http_read_request_header(ngx_http_re } if (n == 0 || n == NGX_ERROR) { - c->error = rev->error; - c->log->action = "sending response to client"; - - ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST); + c->error = 1; + c->log->action = "reading client request headers"; + + ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); return NGX_ERROR; }