1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

factor out TE=chunked checking

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2020-02-07 17:14:05 +00:00
parent 81313af01a
commit c1ac12fa3b
7 changed files with 57 additions and 16 deletions

View File

@@ -257,10 +257,9 @@ AP_DECLARE(int) ap_set_keepalive(request_rec *r)
&& (r->header_only
|| AP_STATUS_IS_HEADER_ONLY(r->status)
|| apr_table_get(r->headers_out, "Content-Length")
|| ap_find_last_token(r->pool,
|| ap_is_chunked(r->pool,
apr_table_get(r->headers_out,
"Transfer-Encoding"),
"chunked")
"Transfer-Encoding"))
|| ((r->proto_num >= HTTP_VERSION(1,1))
&& (r->chunked = 1))) /* THIS CODE IS CORRECT, see above. */
&& r->server->keep_alive