content length calculation in disable chunking

removing 2 times stream serilization