From: Igor Sysoev Date: Mon, 27 Aug 2007 20:52:40 +0000 (+0000) Subject: return 400 response X-Git-Tag: release-0.6.9~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=543a6ae51310f565853b57ad41f3924f1b9eafe7;p=nginx.git return 400 response --- diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index a730da2ae..87b6017a6 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -836,7 +836,7 @@ ngx_http_process_request_headers(ngx_event_t *rev) ngx_log_error(NGX_LOG_INFO, c->log, 0, "client sent too long header line: \"%V\"", &header); - ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST); + ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); return; } } @@ -948,7 +948,7 @@ ngx_http_process_request_headers(ngx_event_t *rev) ngx_log_error(NGX_LOG_INFO, c->log, 0, "client sent invalid header line: \"%V\\r...\"", &header); - ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST); + ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); return; } }