tmenier / Flurl

Fluent URL builder and testable HTTP client for .NET
https://flurl.dev
MIT License
4.23k stars 387 forks source link

Exception caused by automatic redirection resulting in the destructio… #776

Open hezlog opened 1 year ago

hezlog commented 1 year ago

Exception caused by automatic redirection resulting in the destruction of HttpContent in .NET Framework 4.6.x and 4.7.x is fixed.

see: https://github.com/tmenier/Flurl/issues/644 https://github.com/dotnet/runtime/issues/14612 https://github.com/dotnet/corefx/pull/19082

tmenier commented 1 year ago

I'll consider merging this but please apply it to the dev branch per the contribution guidelines. Thanks!

hezlog commented 1 year ago

Modifying the code will result in several test cases failing.