Skip to content

Commit 543d2aa

Browse files
Altahrimskjnldsv
authored andcommitted
chore(download): allows Updater to follow redirects
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
1 parent 84b37d1 commit 543d2aa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/Updater.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ private function getUpdateServerResponse(): array {
504504
CURLOPT_RETURNTRANSFER => 1,
505505
CURLOPT_URL => $updateURL,
506506
CURLOPT_USERAGENT => 'Nextcloud Updater',
507+
CURLOPT_FOLLOWLOCATION => 1,
508+
CURLOPT_MAXREDIRS => 2,
507509
]);
508510

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

updater.phar

455 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)