From cf620cc8ff3d64e9d71260fd1bdb2bf1214273ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Wed, 1 Jan 2025 10:38:42 +0000 Subject: [PATCH] Merged revision(s) 22678 from trunk/OpenMPT: [Imp] Update Check: Be transparent that we are also transmitting the OpenMPT version as User-Agent string. ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@22679 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- mptrack/UpdateCheck.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mptrack/UpdateCheck.cpp b/mptrack/UpdateCheck.cpp index 6bdcf3bbdcf..93d2bc1ef84 100644 --- a/mptrack/UpdateCheck.cpp +++ b/mptrack/UpdateCheck.cpp @@ -1641,6 +1641,8 @@ void CUpdateSetupDlg::OnShowStatisticsData(NMHDR * /*pNMHDR*/, LRESULT * /*pResu statistics += UL_("\n"); { + statistics += U_("User-Agent: ") + Version::Current().GetOpenMPTVersionString() + UL_("\n"); + statistics += UL_("\n"); statistics += U_("GET ") + settings.apiURL + MPT_UFORMAT("update/{}")(GetChannelName(static_cast(settings.channel))) + UL_("\n"); statistics += UL_("\n"); std::vector keyAnchors = TrackerSettings::Instance().UpdateSigningKeysRootAnchors; @@ -1655,6 +1657,8 @@ void CUpdateSetupDlg::OnShowStatisticsData(NMHDR * /*pNMHDR*/, LRESULT * /*pResu { statistics += U_("Statistics:") + UL_("\n"); statistics += UL_("\n"); + statistics += U_("User-Agent: ") + Version::Current().GetOpenMPTVersionString() + UL_("\n"); + statistics += UL_("\n"); if(settings.statisticsUUID.IsValid()) { statistics += U_("PUT ") + settings.apiURL + MPT_UFORMAT("statistics/{}")(settings.statisticsUUID) + UL_("\n");