We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1a5b74 commit 5e98911Copy full SHA for 5e98911
index.php
@@ -536,8 +536,6 @@ private function getUpdateServerResponse(): array {
536
CURLOPT_RETURNTRANSFER => 1,
537
CURLOPT_URL => $updateURL,
538
CURLOPT_USERAGENT => 'Nextcloud Updater',
539
- CURLOPT_FOLLOWLOCATION => 1,
540
- CURLOPT_MAXREDIRS => 2,
541
]);
542
543
if ($this->getConfigOption('proxy') !== null) {
@@ -598,6 +596,8 @@ public function downloadUpdate(): void {
598
596
curl_setopt_array($ch, [
599
597
CURLOPT_FILE => $fp,
600
+ CURLOPT_FOLLOWLOCATION => 1,
+ CURLOPT_MAXREDIRS => 2,
601
602
603
0 commit comments