Skip to content

Commit

Permalink
fix: 修复少了个分号
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Sep 17, 2024
1 parent fdf6b3b commit af8ceb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CSharp-OpenBMCLAPI/Modules/HttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static HttpRequest()
BaseAddress = new Uri(ClusterRequiredData.Config.CenterServerAddress)
};
// 添加UserAgent,用于标识请求来源
string ua = $"openbmclapi-cluster/{ClusterRequiredData.Config.clusterVersion} (CSharp-OpenBMCLAPI; .NET runtime v{Environment.Version}; {Environment.OSVersion}, {System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture}; {System.Globalization.CultureInfo.InstalledUICulture.Name})"
string ua = $"openbmclapi-cluster/{ClusterRequiredData.Config.clusterVersion} (CSharp-OpenBMCLAPI; .NET runtime v{Environment.Version}; {Environment.OSVersion}, {System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture}; {System.Globalization.CultureInfo.InstalledUICulture.Name})";
client.DefaultRequestHeaders.Add("User-Agent", ua);
Console.WriteLine($"User-Agent: {ua}");
}
Expand Down

0 comments on commit af8ceb9

Please sign in to comment.