Merge pull request #1677 from jijiang/CA-258321

CA-258321: Incorrect CFU user agent
This commit is contained in:
Gabor Apati-Nagy 2017-07-03 18:07:11 +01:00 committed by GitHub
commit 13f05aae5e

View File

@ -215,7 +215,7 @@ namespace XenAdmin.Core
private static DownloadUpdatesXmlAction CreateDownloadUpdatesXmlAction(bool checkForXenCenter, bool checkForServerVersion, bool checkForPatches, string checkForUpdatesUrl = null) private static DownloadUpdatesXmlAction CreateDownloadUpdatesXmlAction(bool checkForXenCenter, bool checkForServerVersion, bool checkForPatches, string checkForUpdatesUrl = null)
{ {
string userAgent = string.Format("[XenCenter]/{0}.{1} ({2}-bit)", Branding.XENCENTER_VERSION, Program.Version.Revision.ToString(), IntPtr.Size * 8); string userAgent = string.Format("{0}/{1}.{2} ({3}-bit)", Branding.BRAND_CONSOLE, Branding.XENCENTER_VERSION, Program.Version.Revision.ToString(), IntPtr.Size * 8);
string userAgentId = GetUniqueIdHash(); string userAgentId = GetUniqueIdHash();
return new DownloadUpdatesXmlAction(checkForXenCenter, checkForServerVersion, checkForPatches, userAgent, userAgentId, checkForUpdatesUrl); return new DownloadUpdatesXmlAction(checkForXenCenter, checkForServerVersion, checkForPatches, userAgent, userAgentId, checkForUpdatesUrl);