File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments