fix: Use AssemblyVersion for UserAgent header (#1974)

- Fixes a bug with local builds not being able to make HTTP requests
This commit is contained in:
KazWolfe 2024-07-25 12:30:36 -07:00 committed by GitHub
parent 8c593bc31d
commit 79971fc8d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ internal class HappyHttpClient : IInternalDisposableService
{ {
UserAgent = UserAgent =
{ {
new ProductInfoHeaderValue("Dalamud", Util.GetScmVersion()), new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion),
}, },
}, },
}; };

View file

@ -59,7 +59,7 @@ internal class PluginRepository
}, },
UserAgent = UserAgent =
{ {
new ProductInfoHeaderValue("Dalamud", Util.GetScmVersion()), new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion),
}, },
}, },
}; };