cmullaparthi/ibrowse — pull request #63 by Mistagrooves (2012-02-21 18:13:28+00:00)
Title: Returning empty bodies from the body generating function results in the end of the resource.

If nothing is returned from the body generating function, a chunk with: "0\r\n\r\n" gets sent resulting in the server interpreting it as the end of the entity, which it shouldn't be. I guess it really comes down to semantics because really only a eof should generate the final chunk.

The commit pattern matches for empty bodies and loops again without sending anything.

I encountered this when compressing data and not every loop would return data. I don't know if it needs to be documented that returning nothing triggers the eof behaviour or if a patch like this is necessary.