Disables streaming in the extension when length is undefined.
Merge pull request #5373 from yurydelendik/issue5372

Disables streaming in the extension when length is undefined.