how to replacing the content-length when body is stream?