From: William A. Rowe Jr Date: Tue, 1 Dec 2009 08:59:41 +0000 (+0000) Subject: Revert nonsense I introduced in r885689; solve cl test correctly X-Git-Tag: 2.3.5~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f568428323b0a4004b2c1efcc242d6f39e8eab71;p=apache Revert nonsense I introduced in r885689; solve cl test correctly git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@885694 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_disk_cache.c b/modules/cache/mod_disk_cache.c index 31c85fe1c1..c67112dd35 100644 --- a/modules/cache/mod_disk_cache.c +++ b/modules/cache/mod_disk_cache.c @@ -1082,8 +1082,8 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r, file_cache_errorcleanup(dobj, r); return APR_EGENERAL; } - if (cl_header > 0) { - apr_size_t cl = (apr_size_t) apr_atoi64(cl_header); + if (cl_header) { + apr_off_t cl = (apr_off_t) apr_atoi64(cl_header); if ((errno == 0) && (dobj->file_size != cl)) { ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "disk_cache: URL %s didn't receive complete response, not caching",