diff options
author | Michael Schuster <michael@schuster.ms> | 2020-02-21 23:28:42 +0300 |
---|---|---|
committer | Michael Schuster <michael@schuster.ms> | 2020-02-21 23:28:42 +0300 |
commit | 9c8a0204e57bdc2867f02ce12e237a507d1591a5 (patch) | |
tree | a08c8294a8f7384f172505f0ba730e14ae791a4e /src/gui/updater | |
parent | 34e3d236f821e27f5ab99ee1b6e71a31eca89639 (diff) |
Updater: Add query-parameter 'updatesegment' to the update check
Used to throttle down desktop release rollout in order to keep the update servers alive at peak times.
See: https://github.com/nextcloud/client_updater_server/pull/36
Targeted issues: #1795, #1800
Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'src/gui/updater')
-rw-r--r-- | src/gui/updater/updater.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/updater/updater.cpp b/src/gui/updater/updater.cpp index 3a247d6b2..227d67afd 100644 --- a/src/gui/updater/updater.cpp +++ b/src/gui/updater/updater.cpp @@ -25,6 +25,7 @@ #include "version.h" #include "config.h" +#include "configfile.h" namespace OCC { @@ -75,6 +76,11 @@ QUrlQuery Updater::getQueryParams() // to beta channel } + // updateSegment (see configfile.h) + ConfigFile cfg; + auto updateSegment = cfg.updateSegment(); + query.addQueryItem(QLatin1String("updatesegment"), QString::number(updateSegment)); + return query; } |