diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2009-12-01 09:59:41 +0100 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2009-12-01 09:59:41 +0100 |
commit | f568428323b0a4004b2c1efcc242d6f39e8eab71 (patch) | |
tree | a322e2146809e61c02271fd535fc2cdfa08209af /modules/cache | |
parent | Elaborate on low hanging XXX fruit (diff) | |
download | apache2-f568428323b0a4004b2c1efcc242d6f39e8eab71.tar.xz apache2-f568428323b0a4004b2c1efcc242d6f39e8eab71.zip |
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
Diffstat (limited to 'modules/cache')
-rw-r--r-- | modules/cache/mod_disk_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
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", |