Fix bug: correctly handle content-length 0.