Skip to content

Commit 55455f4

Browse files
committed
fix: 修复检查更新时所用的 UA 错误
1 parent 603cefb commit 55455f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DotVast.HashTool.WinUI/Services/CheckUpdateService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public CheckUpdateService(
3636
// https://docs.github.com/en/rest/overview/media-types
3737
// https://docs.github.com/en/rest/overview/resources-in-the-rest-api#user-agent-required
3838
_client.DefaultRequestHeaders.Accept.Add(new("application/vnd.github+json"));
39-
_client.DefaultRequestHeaders.UserAgent.Add(new("DotVast.HashTool.WinUI", Package.Current.Id.Version.ToString()));
39+
_client.DefaultRequestHeaders.UserAgent.Add(new("DotVast.HashTool.WinUI", RuntimeHelper.AppVersion.ToString()));
4040
}
4141

4242
public async Task StartupAsync()

0 commit comments

Comments
 (0)