mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Use HTTP/2 explicitly on .NET Core
This commit is contained in:
@@ -546,6 +546,10 @@ namespace ArchiSteamFarm {
|
||||
HttpResponseMessage response;
|
||||
|
||||
using (HttpRequestMessage request = new HttpRequestMessage(httpMethod, requestUri)) {
|
||||
#if !NETFRAMEWORK
|
||||
request.Version = HttpVersion.Version20;
|
||||
#endif
|
||||
|
||||
if (data != null) {
|
||||
try {
|
||||
request.Content = new FormUrlEncodedContent(data);
|
||||
|
||||
Reference in New Issue
Block a user