You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not expose HttpResponseMessage.Content == null to user code #386
In recent (5.0 and newer) .NET runtimes, Content==null is impossible for user code to see. Even in older runtimes, HttpClient would never leave Content==null either.
Public code in this repo both exposes Content==null (inconsistently) and expects (mostly in tests) to see that state. Bad enough we expose that state but it being inconsistent (depending on the runtime version) makes things worse.
The action here is to change our code to both remove the inconsistencies i.e., have Content!=null everywhere regardless of the runtime version and update our expectations to handle Content!=null. This includes reverting tests removed on net6.0 in #384.
Activity
dougbu commentedon Feb 13, 2023
Anything to add @Tratcher or @stephentoub❔
stephentoub commentedon Feb 13, 2023
Sounds fine.
Test Formatting assemblies w/ `net6.0` (#384)
Add `Content` to all `HttpResponseMessage`s (#387)