0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

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.
This commit is contained in:
Richard Stanway 2022-08-30 16:10:31 +02:00
parent cc2d0791ca
commit edca16d77d
No known key found for this signature in database
GPG Key ID: 4F96FCA24BCE7BA1

View File

@ -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 */