mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 02:30:11 +00:00
Force HTTP/1.1 for now
This commit is contained in:
parent
2aa258acf4
commit
92e638613f
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ namespace Myriad.Rest;
|
||||||
public class BaseRestClient: IAsyncDisposable
|
public class BaseRestClient: IAsyncDisposable
|
||||||
{
|
{
|
||||||
private readonly string _baseUrl;
|
private readonly string _baseUrl;
|
||||||
private readonly Version _httpVersion = new(2, 0);
|
private readonly Version _httpVersion = new(1, 1);
|
||||||
private readonly JsonSerializerOptions _jsonSerializerOptions;
|
private readonly JsonSerializerOptions _jsonSerializerOptions;
|
||||||
private readonly ILogger _logger;
|
private readonly ILogger _logger;
|
||||||
private readonly Ratelimiter _ratelimiter;
|
private readonly Ratelimiter _ratelimiter;
|
||||||
|
|
@ -177,7 +177,7 @@ public class BaseRestClient: IAsyncDisposable
|
||||||
request.Method, CleanForLogging(request.RequestUri!));
|
request.Method, CleanForLogging(request.RequestUri!));
|
||||||
|
|
||||||
request.Version = _httpVersion;
|
request.Version = _httpVersion;
|
||||||
request.VersionPolicy = HttpVersionPolicy.RequestVersionOrHigher;
|
request.VersionPolicy = HttpVersionPolicy.RequestVersionExact;
|
||||||
|
|
||||||
HttpResponseMessage response;
|
HttpResponseMessage response;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue