diff options
author | Eric Covener <covener@apache.org> | 2020-02-07 18:14:05 +0100 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2020-02-07 18:14:05 +0100 |
commit | c1ac12fa3b94bf1aabf16acad38afdb4198f8f23 (patch) | |
tree | c037dda4d7abf4de6262e5e3ac383ffbe0e88eeb /modules/test | |
parent | factor out default regex flags (diff) | |
download | apache2-c1ac12fa3b94bf1aabf16acad38afdb4198f8f23.tar.xz apache2-c1ac12fa3b94bf1aabf16acad38afdb4198f8f23.zip |
factor out TE=chunked checking
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873748 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/test')
-rw-r--r-- | modules/test/mod_policy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/test/mod_policy.c b/modules/test/mod_policy.c index ded77c761d..841b1b16bd 100644 --- a/modules/test/mod_policy.c +++ b/modules/test/mod_policy.c @@ -311,8 +311,8 @@ static apr_status_t policy_keepalive_out_filter(ap_filter_t *f, if (!(r->header_only || AP_STATUS_IS_HEADER_ONLY(r->status) || apr_table_get(r->headers_out, "Content-Length") - || ap_find_last_token(r->pool, apr_table_get(r->headers_out, - "Transfer-Encoding"), "chunked") + || ap_is_chunked(r->pool, apr_table_get(r->headers_out, + "Transfer-Encoding")) || r->proto_num >= HTTP_VERSION(1, 1))) { handle_policy(r, result, "Keepalive should be possible (supply Content-Length or HTTP/1.1 Transfer-Encoding)", |