You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2007/11/15 16:06:02 UTC
svn commit: r595325 - /httpd/sandbox/amsterdam/d/modules/proxy/mod_serf.c
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;