Skip to content

Commit deeb029

Browse files
tcitworldbackportbot[bot]
authored andcommitted
feat: allow redirections when downloading package
follow-up to #624 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 parent 3301dd8 commit deeb029

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Updater.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,8 @@ public function downloadUpdate(): void {
543543
curl_setopt_array($ch, [
544544
CURLOPT_FILE => $fp,
545545
CURLOPT_USERAGENT => 'Nextcloud Updater',
546+
CURLOPT_FOLLOWLOCATION => 1,
547+
CURLOPT_MAXREDIRS => 2,
546548
]);
547549

548550
if ($this->getConfigOption('proxy') !== null) {

0 commit comments

Comments
 (0)