Skip to content

Commit 5e98911

Browse files
skjnldsvbackportbot[bot]
authored andcommitted
chore: rebuild index.php and updater.phar
Signed-off-by: skjnldsv <skjnldsv@protonmail.com> [skip ci]
1 parent b1a5b74 commit 5e98911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,6 @@ private function getUpdateServerResponse(): array {
536536
CURLOPT_RETURNTRANSFER => 1,
537537
CURLOPT_URL => $updateURL,
538538
CURLOPT_USERAGENT => 'Nextcloud Updater',
539-
CURLOPT_FOLLOWLOCATION => 1,
540-
CURLOPT_MAXREDIRS => 2,
541539
]);
542540

543541
if ($this->getConfigOption('proxy') !== null) {
@@ -598,6 +596,8 @@ public function downloadUpdate(): void {
598596
curl_setopt_array($ch, [
599597
CURLOPT_FILE => $fp,
600598
CURLOPT_USERAGENT => 'Nextcloud Updater',
599+
CURLOPT_FOLLOWLOCATION => 1,
600+
CURLOPT_MAXREDIRS => 2,
601601
]);
602602

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

0 commit comments

Comments
 (0)