Protocol#write_body was not reading IO-like body objects correctly
protocol: gurantee that all bytes have been written
Merge pull request #19 from hannesg/fix_reading_body

Fix reading body from IO-like