Skip to content

Commit

Permalink
RequestVersionExact
Browse files Browse the repository at this point in the history
  • Loading branch information
mili-tan committed May 16, 2024
1 parent b516e0d commit 96369af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ public static async Task<DnsMessage> DnsOverHttpsQuery(DnsMessage query)
{
if (requestException.InnerException is HttpProtocolException)
{
TargetVersionPolicy = HttpVersionPolicy.RequestVersionExact;
TargetHttpVersion = new Version(2, 0);
}
else Console.WriteLine(requestException);
Expand Down

0 comments on commit 96369af

Please sign in to comment.