Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 1515:bb61a910e832 stable-0.5
r1428 merge:
return 400 response
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 22 Sep 2007 19:34:16 +0000 |
parents | c9c4e96421f1 |
children | 8f988b68097d |
comparison
equal
deleted
inserted
replaced
1514:0bd321c8ce67 | 1515:bb61a910e832 |
---|---|
835 } | 835 } |
836 | 836 |
837 ngx_log_error(NGX_LOG_INFO, c->log, 0, | 837 ngx_log_error(NGX_LOG_INFO, c->log, 0, |
838 "client sent too long header line: \"%V\"", | 838 "client sent too long header line: \"%V\"", |
839 &header); | 839 &header); |
840 ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST); | 840 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); |
841 return; | 841 return; |
842 } | 842 } |
843 } | 843 } |
844 | 844 |
845 n = ngx_http_read_request_header(r); | 845 n = ngx_http_read_request_header(r); |
947 header.len = r->header_end - r->header_name_start; | 947 header.len = r->header_end - r->header_name_start; |
948 header.data = r->header_name_start; | 948 header.data = r->header_name_start; |
949 ngx_log_error(NGX_LOG_INFO, c->log, 0, | 949 ngx_log_error(NGX_LOG_INFO, c->log, 0, |
950 "client sent invalid header line: \"%V\\r...\"", | 950 "client sent invalid header line: \"%V\\r...\"", |
951 &header); | 951 &header); |
952 ngx_http_close_request(r, NGX_HTTP_BAD_REQUEST); | 952 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); |
953 return; | 953 return; |
954 } | 954 } |
955 } | 955 } |
956 | 956 |
957 | 957 |