Hacky support of chunked encoding in peer