From 92e638613fafad787d6dd15c2a214dec9525999d Mon Sep 17 00:00:00 2001 From: Ske Date: Thu, 23 Dec 2021 21:23:43 -0500 Subject: [PATCH] Force HTTP/1.1 for now --- Myriad/Rest/BaseRestClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Myriad/Rest/BaseRestClient.cs b/Myriad/Rest/BaseRestClient.cs index f7ce68d5..2242bab4 100644 --- a/Myriad/Rest/BaseRestClient.cs +++ b/Myriad/Rest/BaseRestClient.cs @@ -20,7 +20,7 @@ namespace Myriad.Rest; public class BaseRestClient: IAsyncDisposable { private readonly string _baseUrl; - private readonly Version _httpVersion = new(2, 0); + private readonly Version _httpVersion = new(1, 1); private readonly JsonSerializerOptions _jsonSerializerOptions; private readonly ILogger _logger; private readonly Ratelimiter _ratelimiter; @@ -177,7 +177,7 @@ public class BaseRestClient: IAsyncDisposable request.Method, CleanForLogging(request.RequestUri!)); request.Version = _httpVersion; - request.VersionPolicy = HttpVersionPolicy.RequestVersionOrHigher; + request.VersionPolicy = HttpVersionPolicy.RequestVersionExact; HttpResponseMessage response;