Fixes a bug where booth Watson backends can hard crash in a specific scenario.
The scenario in question is a streaming application (not yet available) that uses chunked encoding with FFMpeg, but like described in this issue tracker : https://github.com/dotnet/WatsonWebserver/issues/135 the server can send some 500 Internal Server Error responses in the middle (which client ignore of course, so harmless) in case of a non-standard streaming use.
So we effectively now use chunck encoding if, by mistake, server send one of these 500 Internal Server Error while in a chunked stream session.
Fixes a bug where booth Watson backends can hard crash in a specific scenario.
The scenario in question is a streaming application (not yet available) that uses chunked encoding with FFMpeg, but like described in this issue tracker : https://github.com/dotnet/WatsonWebserver/issues/135 the server can send some 500 Internal Server Error responses in the middle (which client ignore of course, so harmless) in case of a non-standard streaming use.
So we effectively now use chunck encoding if, by mistake, server send one of these 500 Internal Server Error while in a chunked stream session.