-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to redirect with content on Full Framework #644
Comments
I'll look into this. Just so I can repro easily, what's the HTTP verb and status (3??) of the original (redirecting) call? |
it's PUT with 301 |
Sorry to do this but I think I'm going to mark this a won't-fix. I looked into it and it would be quite an involved fix, I haven't heard about anyone else running into it, and as you noted it only affects people still on full Framework, which is becoming fewer and fewer in a .NET 6 world. You've probably found a work-around by now, but I'd suggest either trying to recreate the content in the |
…n of HttpContent in .NET Framework 4.6.x and 4.7.x is fixed. see: tmenier#644 dotnet/runtime#14612 dotnet/corefx#19082
HttpClient disposes HttpContent after request on full framework (not core):
Why does HttpClient dispose HttpContent?
Stop disposing of request content in HttpClient
But FlurlRequest.ProcessRedirectAsync tries to reuse disposed content for redirect request and this leads to CapturedJsonContent disposed exception
The text was updated successfully, but these errors were encountered: