Closed
Description
Android application type
.NET Android (net7.0-android, net8.0-android, etc.)
Affected platform version
.NET8
Description
This is a new issue after this one has been closed: #4477
Steps to Reproduce
var msg = new HttpRequestMessage(HttpMethod.Get, "https://httpbingo.org/status/304");
var result = await new HttpClient().SendAsync(msg); // no exception
var msg2 = new HttpRequestMessage(HttpMethod.Get, "https://httpbingo.org/status/308");
var result2 = await new HttpClient().SendAsync(msg2); // exception
Sending the first message does not cause an exception (which is the expected behavior), while the second one does.
Did you find any workaround?
No response
Relevant log output
No response