Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 1427:bfb6aacc0ab9
return 400 response
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 27 Aug 2007 20:52:40 +0000 |
parents | 937fbbf611cd |
children | 0f0ce9a8eee9 |
comparison
equal
deleted
inserted
replaced
1426:adbafd129d06 | 1427:bfb6aacc0ab9 |
---|---|
834 } | 834 } |
835 | 835 |
836 ngx_log_error(NGX_LOG_INFO, c->log, 0, | 836 ngx_log_error(NGX_LOG_INFO, c->log, 0, |
837 "client sent too long header line: \"%V\"", | 837 "client sent too long header line: \"%V\"", |
838 &header); | 838 &header); |
839 ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST); | 839 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); |
840 return; | 840 return; |
841 } | 841 } |
842 } | 842 } |
843 | 843 |
844 n = ngx_http_read_request_header(r); | 844 n = ngx_http_read_request_header(r); |
946 header.len = r->header_end - r->header_name_start; | 946 header.len = r->header_end - r->header_name_start; |
947 header.data = r->header_name_start; | 947 header.data = r->header_name_start; |
948 ngx_log_error(NGX_LOG_INFO, c->log, 0, | 948 ngx_log_error(NGX_LOG_INFO, c->log, 0, |
949 "client sent invalid header line: \"%V\\r...\"", | 949 "client sent invalid header line: \"%V\\r...\"", |
950 &header); | 950 &header); |
951 ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST); | 951 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); |
952 return; | 952 return; |
953 } | 953 } |
954 } | 954 } |
955 | 955 |
956 | 956 |