aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-08-27 20:52:40 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-08-27 20:52:40 +0000
commit543a6ae51310f565853b57ad41f3924f1b9eafe7 (patch)
tree7906b2ce068d07369e3ba7b853a2e01e4043b116 /src/http/ngx_http_request.c
parent6fe1303fb5fe0bbaf709cb58155517b92c82d395 (diff)
downloadnginx-543a6ae51310f565853b57ad41f3924f1b9eafe7.tar.gz
nginx-543a6ae51310f565853b57ad41f3924f1b9eafe7.zip
return 400 response
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}