diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-01-31 17:25:43 -0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-02-01 09:49:18 +0000 |
commit | d5f5cd95e80ed5f7c8bdf6eace4c2dffd36de2e1 (patch) | |
tree | de3221ea85089fd0bc6d282543d29b20c5e90dba | |
parent | 0e09c61b148a09ded85dcdf4d9f31777ead28474 (diff) |
allow FOLLOWLOCATION
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-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 |