]> granicus.if.org Git - apache/commitdiff
Grrr.. Cliff warned me about this. APR should return APR_SUCCESS with
authorBill Stoddard <stoddard@apache.org>
Fri, 6 Jul 2001 19:49:47 +0000 (19:49 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 6 Jul 2001 19:49:47 +0000 (19:49 +0000)
zero bytes read rather than APR_EOF. Will work on APR later...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89508 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index d7328b257c21a65c9191e0c57981f6ea9bc07c43..b6c1b95733b8028bba0b01d213124295ead27c20 100644 (file)
@@ -929,9 +929,9 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f,
                         break;
                     }
                 }
-                else  { 
-                    ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "ap_content_length_filter: "
-                                  "apr_bucket_read() failed");
+                else if (rv != APR_EOF) {
+                    ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, 
+                        "ap_content_length_filter: apr_bucket_read() failed");
                     return rv;
                 }
             }