Last commit was not entirely correct...
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 16 Mar 2012 04:30:42 +0000 (00:30 -0400)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 16 Mar 2012 04:31:34 +0000 (00:31 -0400)
mcs/class/System/System.Net/ChunkStream.cs

index e26c97f7d1ce76dfd92896ba3eae5cb3992503a8..2c29b417c9cfb6bd1f3739016131a3b6e5221093 100644 (file)
@@ -185,7 +185,7 @@ namespace System.Net
                                        if (ch == null || ch.Bytes == null)
                                                continue;
                                        if (ch.Bytes.Length > 0 && ch.Offset < ch.Bytes.Length)
-                                               return true;
+                                               return (state != State.Body);
                                }
                                return false;
                        }