From 79971fc8d69f7db640fd1d3b5ae52d3a905820b2 Mon Sep 17 00:00:00 2001 From: KazWolfe Date: Thu, 25 Jul 2024 12:30:36 -0700 Subject: [PATCH] fix: Use AssemblyVersion for UserAgent header (#1974) - Fixes a bug with local builds not being able to make HTTP requests --- Dalamud/Networking/Http/HappyHttpClient.cs | 2 +- Dalamud/Plugin/Internal/Types/PluginRepository.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Networking/Http/HappyHttpClient.cs b/Dalamud/Networking/Http/HappyHttpClient.cs index 4db44f1cf..aeed98695 100644 --- a/Dalamud/Networking/Http/HappyHttpClient.cs +++ b/Dalamud/Networking/Http/HappyHttpClient.cs @@ -36,7 +36,7 @@ internal class HappyHttpClient : IInternalDisposableService { UserAgent = { - new ProductInfoHeaderValue("Dalamud", Util.GetScmVersion()), + new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion), }, }, }; diff --git a/Dalamud/Plugin/Internal/Types/PluginRepository.cs b/Dalamud/Plugin/Internal/Types/PluginRepository.cs index 9caa40f2e..2f63070c3 100644 --- a/Dalamud/Plugin/Internal/Types/PluginRepository.cs +++ b/Dalamud/Plugin/Internal/Types/PluginRepository.cs @@ -59,7 +59,7 @@ internal class PluginRepository }, UserAgent = { - new ProductInfoHeaderValue("Dalamud", Util.GetScmVersion()), + new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion), }, }, };