Merge pull request #386 from nextcloud/feature/369/allow-redirection-on-webfinger

allow FOLLOWLOCATION
test/oracle
Maxence Lange 2019-02-01 08:49:01 -01:00 zatwierdzone przez GitHub
commit dc3e04e2e4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
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