kopia lustrzana https://github.com/nextcloud/social
allow FOLLOWLOCATION
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/386/head
rodzic
f43b1a37b3
commit
c20aaf1ad6
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue