Skip to content

Commit e1cc269

Browse files
committed
feat: allow redirections when downloading package
follow-up to #624 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 parent 63a65a8 commit e1cc269

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
@@ -592,6 +592,8 @@ public function downloadUpdate(): void {
592592
CURLOPT_PROGRESSFUNCTION => [$this, 'downloadProgressCallback'],
593593
CURLOPT_FILE => $fp,
594594
CURLOPT_USERAGENT => 'Nextcloud Updater',
595+
CURLOPT_FOLLOWLOCATION => 1,
596+
CURLOPT_MAXREDIRS => 2,
595597
]);
596598

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

0 commit comments

Comments
 (0)