]> granicus.if.org Git - apache/commitdiff
Revert nonsense I introduced in r885689; solve cl test correctly
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 1 Dec 2009 08:59:41 +0000 (08:59 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 1 Dec 2009 08:59:41 +0000 (08:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@885694 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_disk_cache.c

index 31c85fe1c1af326f80195e70880f3e6e4e62ab6d..c67112dd355162abbf7f9f669d8a3fcc5d998ce0 100644 (file)
@@ -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",