fix error with `Transfer-Encoding: chunked` header.