Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 449:3b1e8c9df9ad
nginx-0.1.0-2004-10-04-00:02:06 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 03 Oct 2004 20:02:06 +0000 |
parents | 42d11f017717 |
children | 23fb87bddda1 |
comparison
equal
deleted
inserted
replaced
448:241dc8092a33 | 449:3b1e8c9df9ad |
---|---|
45 "client %s sent too long URI", | 45 "client %s sent too long URI", |
46 "client %s sent invalid method in HTTP/0.9 request", | 46 "client %s sent invalid method in HTTP/0.9 request", |
47 | 47 |
48 "client %s sent invalid header, URL: %s", | 48 "client %s sent invalid header, URL: %s", |
49 "client %s sent too long header line, URL: %s", | 49 "client %s sent too long header line, URL: %s", |
50 "client %s sent too many headers, URL: %s", | |
51 "client %s sent HTTP/1.1 request without \"Host\" header, URL: %s", | 50 "client %s sent HTTP/1.1 request without \"Host\" header, URL: %s", |
52 "client %s sent invalid \"Content-Length\" header, URL: %s", | 51 "client %s sent invalid \"Content-Length\" header, URL: %s", |
53 "client %s sent POST method without \"Content-Length\" header, URL: %s", | 52 "client %s sent POST method without \"Content-Length\" header, URL: %s", |
54 "client %s sent plain HTTP request to HTTPS port, URL: %s", | 53 "client %s sent plain HTTP request to HTTPS port, URL: %s", |
55 "client %s sent invalid \"Host\" header \"%s\", URL: %s" | 54 "client %s sent invalid \"Host\" header \"%s\", URL: %s" |
755 n = ngx_http_read_request_header(r); | 754 n = ngx_http_read_request_header(r); |
756 | 755 |
757 if (n == NGX_AGAIN || n == NGX_ERROR) { | 756 if (n == NGX_AGAIN || n == NGX_ERROR) { |
758 return; | 757 return; |
759 } | 758 } |
760 } | |
761 | |
762 if (r->headers_n > 100) { | |
763 ngx_http_client_error(r, NGX_HTTP_PARSE_TOO_MANY_HEADERS, | |
764 NGX_HTTP_BAD_REQUEST); | |
765 return; | |
766 } | 759 } |
767 | 760 |
768 rc = ngx_http_parse_header_line(r, r->header_in); | 761 rc = ngx_http_parse_header_line(r, r->header_in); |
769 | 762 |
770 if (rc == NGX_OK) { | 763 if (rc == NGX_OK) { |