From edca16d77df30f95b7b4061ff8824421e5f3a507 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Tue, 30 Aug 2022 16:10:31 +0200 Subject: [PATCH] UI: Add HTTP header if the update check is manually initiated With the addition of server-side release rate control, having the server know if the update check was manually initiated can allow it to deliver the update to the user even if they would normally not be eligible. Windows only. --- UI/win-update/win-update.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/win-update/win-update.cpp b/UI/win-update/win-update.cpp index 7619aa6ea..069a3818a 100644 --- a/UI/win-update/win-update.cpp +++ b/UI/win-update/win-update.cpp @@ -585,6 +585,11 @@ try { extraHeaders.push_back(move(header)); } + /* allow server to know if this was a manual update check in case + * we want to allow people to bypass a configured rollout rate */ + if (manualUpdate) + extraHeaders.emplace_back("X-OBS2-ManualUpdate: 1"); + /* ----------------------------------- * * get manifest from server */