Fix redirected stream content-length. Fix #14647
Merge pull request #4067 from ulion/fix_curl_302_content_length

Fix redirected stream content-length. Fix #14647