Skip to content
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

Allow downgrading of HTTP version #108

Merged
merged 6 commits into from
Dec 16, 2024
Merged

Conversation

mayuki
Copy link
Member

@mayuki mayuki commented Dec 13, 2024

This PR allows downgrading of HTTP request version.

The request version was specified to hyper-side, so an error occurred when the request and server versions did not match.
Original .NET's HTTP handlers allows response versions lower than RequestVersion by default.

When communicating with a server that does not support HTTP/2 while HttpRequestMessage.Version is set to HttpVersion.Version20, a problem occurs.

In particular, in Unity on macOS, the default value for Version property is Version20, so HTTP requests will fail unexpectedly.

@mayuki mayuki merged commit a7338d3 into main Dec 16, 2024
14 checks passed
@mayuki mayuki deleted the feature/DowngradeHttpVersion branch December 16, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant