diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-02-01 09:10:15 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-01 09:10:15 -0100 |
commit | f3bac3b50e421f097aca0827461b15a13ecb24c4 (patch) | |
tree | de3221ea85089fd0bc6d282543d29b20c5e90dba | |
parent | 0e09c61b148a09ded85dcdf4d9f31777ead28474 (diff) | |
parent | d5f5cd95e80ed5f7c8bdf6eace4c2dffd36de2e1 (diff) |
Merge pull request #387 from nextcloud/backport/386/alpha1
[alpha1] allow FOLLOWLOCATION
-rw-r--r-- | lib/Service/CurlService.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Service/CurlService.php b/lib/Service/CurlService.php index 63ed8487..e3745219 100644 --- a/lib/Service/CurlService.php +++ b/lib/Service/CurlService.php @@ -265,6 +265,8 @@ class CurlService { curl_setopt($curl, CURLOPT_BINARYTRANSFER, $request->isBinary()); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); + curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); + $this->maxDownloadSize = $this->configService->getAppValue(ConfigService::SOCIAL_MAX_SIZE) * (1024 * 1024); curl_setopt($curl, CURLOPT_BUFFERSIZE, 128); @@ -390,6 +392,7 @@ class CurlService { } } + /** * @param int $code * @param Request $request |