allow FOLLOWLOCATION

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
test/oracle
Maxence Lange 2019-01-31 17:25:43 -01:00
rodzic f43b1a37b3
commit c20aaf1ad6
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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