From 146a8d0064fd7b34c85864a5bed8718dbc685eb8 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Sat, 1 Mar 2014 20:34:55 +0000 Subject: [PATCH] mod_deflate: when consuming zlibs flags, APR_INCOMPLETE implies no more bytes available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1573224 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_deflate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index b8c982babe..74d6dd1ab2 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -1210,7 +1210,7 @@ static apr_status_t deflate_in_filter(ap_filter_t *f, if (rv == APR_SUCCESS) { ctx->zlib_flags = 0; } - if (rv == APR_INCOMPLETE || !len) { + if (!len) { continue; } } @@ -1614,7 +1614,7 @@ static apr_status_t inflate_out_filter(ap_filter_t *f, if (rv == APR_SUCCESS) { ctx->zlib_flags = 0; } - if (rv == APR_INCOMPLETE || !len) { + if (!len) { apr_bucket_delete(e); continue; } -- 2.40.0