summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-01-31 17:25:43 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-01-31 17:25:43 -0100
commitc20aaf1ad69c7ac5a970c60a8d0e25eaa12a2614 (patch)
tree72be6c77ae164a1ec97ba17ed59872086a270ee5 /lib/Service
parentf43b1a37b39711c35d393937437f4e6a42eb602a (diff)
allow FOLLOWLOCATION
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/CurlService.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Service/CurlService.php b/lib/Service/CurlService.php
index f9554670..923596d1 100644
--- a/lib/Service/CurlService.php
+++ b/lib/Service/CurlService.php
@@ -274,6 +274,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);
@@ -399,6 +401,7 @@ class CurlService {
}
}
+
/**
* @param int $code
* @param Request $request