Skip to content

Commit

Permalink
Merged revision(s) 22678 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[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
  • Loading branch information
manxorist committed Jan 1, 2025
1 parent d0dd887 commit cf620cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mptrack/UpdateCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<UpdateChannel>(settings.channel))) + UL_("\n");
statistics += UL_("\n");
std::vector<mpt::ustring> keyAnchors = TrackerSettings::Instance().UpdateSigningKeysRootAnchors;
Expand All @@ -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");
Expand Down

0 comments on commit cf620cc

Please sign in to comment.