sforkowany z mirror/social
Merge pull request #386 from nextcloud/feature/369/allow-redirection-on-webfinger
allow FOLLOWLOCATIONtest/oracle
commit
dc3e04e2e4
|
@ -274,6 +274,8 @@ class CurlService {
|
||||||
curl_setopt($curl, CURLOPT_BINARYTRANSFER, $request->isBinary());
|
curl_setopt($curl, CURLOPT_BINARYTRANSFER, $request->isBinary());
|
||||||
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
|
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
|
||||||
|
|
||||||
|
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
|
||||||
|
|
||||||
$this->maxDownloadSize =
|
$this->maxDownloadSize =
|
||||||
$this->configService->getAppValue(ConfigService::SOCIAL_MAX_SIZE) * (1024 * 1024);
|
$this->configService->getAppValue(ConfigService::SOCIAL_MAX_SIZE) * (1024 * 1024);
|
||||||
curl_setopt($curl, CURLOPT_BUFFERSIZE, 128);
|
curl_setopt($curl, CURLOPT_BUFFERSIZE, 128);
|
||||||
|
@ -399,6 +401,7 @@ class CurlService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $code
|
* @param int $code
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
|
|
Ładowanie…
Reference in New Issue