Fixed bug where code would think it has finished reading when headers and body are read separate
and transfer-encoding is chunked.
Test to ensure separate body and headers are read correctly
Fix indentation