httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r595325 - /httpd/sandbox/amsterdam/d/modules/proxy/mod_serf.c
Date Thu, 15 Nov 2007 15:06:02 GMT
Author: jim
Date: Thu Nov 15 07:06:01 2007
New Revision: 595325

URL: http://svn.apache.org/viewvc?rev=595325&view=rev
Log:
combine common logic

Modified:
    httpd/sandbox/amsterdam/d/modules/proxy/mod_serf.c

Modified: httpd/sandbox/amsterdam/d/modules/proxy/mod_serf.c
URL: http://svn.apache.org/viewvc/httpd/sandbox/amsterdam/d/modules/proxy/mod_serf.c?rev=595325&r1=595324&r2=595325&view=diff
==============================================================================
--- httpd/sandbox/amsterdam/d/modules/proxy/mod_serf.c (original)
+++ httpd/sandbox/amsterdam/d/modules/proxy/mod_serf.c Thu Nov 15 07:06:01 2007
@@ -432,12 +432,8 @@
         ctx->last_read = 0;
     }
 
-    if (APR_BRIGADE_EMPTY(ctx->bb)) {
-        *len = 0;
-        return APR_EOF;
-    }
-
-    if (APR_BUCKET_IS_EOS(APR_BRIGADE_FIRST(ctx->bb)) ||
+    if (APR_BRIGADE_EMPTY(ctx->bb) ||
+        APR_BUCKET_IS_EOS(APR_BRIGADE_FIRST(ctx->bb)) ||
         AP_BUCKET_IS_EOR(APR_BRIGADE_FIRST(ctx->bb))) {
         *len = 0;
         return APR_EOF;



Mime
View raw message