Skip to content

Commit 28e95dd

Browse files
authored
Merge pull request #632 from nextcloud/backport/629/stable31
2 parents 3301dd8 + 0e224ea commit 28e95dd

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,6 @@ private function getUpdateServerResponse(): array {
519519
CURLOPT_RETURNTRANSFER => 1,
520520
CURLOPT_URL => $updateURL,
521521
CURLOPT_USERAGENT => 'Nextcloud Updater',
522-
CURLOPT_FOLLOWLOCATION => 1,
523-
CURLOPT_MAXREDIRS => 2,
524522
]);
525523

526524
if ($this->getConfigOption('proxy') !== null) {
@@ -581,6 +579,8 @@ public function downloadUpdate(): void {
581579
curl_setopt_array($ch, [
582580
CURLOPT_FILE => $fp,
583581
CURLOPT_USERAGENT => 'Nextcloud Updater',
582+
CURLOPT_FOLLOWLOCATION => 1,
583+
CURLOPT_MAXREDIRS => 2,
584584
]);
585585

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

lib/Updater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,6 @@ private function getUpdateServerResponse(): array {
481481
CURLOPT_RETURNTRANSFER => 1,
482482
CURLOPT_URL => $updateURL,
483483
CURLOPT_USERAGENT => 'Nextcloud Updater',
484-
CURLOPT_FOLLOWLOCATION => 1,
485-
CURLOPT_MAXREDIRS => 2,
486484
]);
487485

488486
if ($this->getConfigOption('proxy') !== null) {
@@ -543,6 +541,8 @@ public function downloadUpdate(): void {
543541
curl_setopt_array($ch, [
544542
CURLOPT_FILE => $fp,
545543
CURLOPT_USERAGENT => 'Nextcloud Updater',
544+
CURLOPT_FOLLOWLOCATION => 1,
545+
CURLOPT_MAXREDIRS => 2,
546546
]);
547547

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

updater.phar

1 Byte
Binary file not shown.

0 commit comments

Comments
 (0)