Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 8839:fac88e160653 quic
Merged with the default branch.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 01 Sep 2021 10:57:25 +0300 |
parents | 6674a50cbb6c 7a6afd584eb4 |
children | 6a383020d61e |
comparison
equal
deleted
inserted
replaced
8838:d6e191a583cc | 8839:fac88e160653 |
---|---|
1990 return NGX_ERROR; | 1990 return NGX_ERROR; |
1991 } | 1991 } |
1992 } | 1992 } |
1993 | 1993 |
1994 if (r->headers_in.transfer_encoding) { | 1994 if (r->headers_in.transfer_encoding) { |
1995 if (r->http_version < NGX_HTTP_VERSION_11) { | |
1996 ngx_log_error(NGX_LOG_INFO, r->connection->log, 0, | |
1997 "client sent HTTP/1.0 request with " | |
1998 "\"Transfer-Encoding\" header"); | |
1999 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); | |
2000 return NGX_ERROR; | |
2001 } | |
2002 | |
1995 if (r->headers_in.transfer_encoding->value.len == 7 | 2003 if (r->headers_in.transfer_encoding->value.len == 7 |
1996 && ngx_strncasecmp(r->headers_in.transfer_encoding->value.data, | 2004 && ngx_strncasecmp(r->headers_in.transfer_encoding->value.data, |
1997 (u_char *) "chunked", 7) == 0) | 2005 (u_char *) "chunked", 7) == 0) |
1998 { | 2006 { |
1999 if (r->headers_in.content_length) { | 2007 if (r->headers_in.content_length) { |