On the 1.2.x branch:
Merge r2032: Fix issue while reading chunks: handle APR_EAGAIN between CR
and LF or right after CRLF. This fixes the unit test added in
r2031.
git-svn-id: https://svn.apache.org/repos/asf/serf/branches/1.2.x@1699576 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/buckets/dechunk_buckets.c b/buckets/dechunk_buckets.c
index 262cffb..a9d6ec8 100644
--- a/buckets/dechunk_buckets.c
+++ b/buckets/dechunk_buckets.c
@@ -162,6 +162,9 @@
ctx->state = STATE_SIZE;
}
+ /* Don't return the CR of CRLF to the caller! */
+ *len = 0;
+
if (status)
return status;