Skip to content

AndroidMessageHandler: HTTP status code 308 is throwing an exception #8946

Closed
@tipa

Description

@tipa

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

Metadata

Metadata

Labels

Area: HTTPIssues with sockets / HttpClient.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions