412608 EOF Chunk not sent on inputstream static content

Reworked loop to handle the case of a partial read before EOF