fix url
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
be71ce32dc
commit
e964f83f28
|
@ -214,10 +214,10 @@ class CheckSetupController extends Controller {
|
||||||
if(strpos($versionString, 'NSS/') === 0) {
|
if(strpos($versionString, 'NSS/') === 0) {
|
||||||
try {
|
try {
|
||||||
$firstClient = $this->clientService->newClient();
|
$firstClient = $this->clientService->newClient();
|
||||||
$firstClient->get('https://www.owncloud.org/');
|
$firstClient->get('https://nextcloud.com/');
|
||||||
|
|
||||||
$secondClient = $this->clientService->newClient();
|
$secondClient = $this->clientService->newClient();
|
||||||
$secondClient->get('https://owncloud.org/');
|
$secondClient->get('https://nextcloud.com/');
|
||||||
} catch (ClientException $e) {
|
} catch (ClientException $e) {
|
||||||
if($e->getResponse()->getStatusCode() === 400) {
|
if($e->getResponse()->getStatusCode() === 400) {
|
||||||
return (string) $this->l10n->t('cURL is using an outdated %s version (%s). Please update your operating system or features such as %s will not work reliably.', ['NSS', $versionString, $features]);
|
return (string) $this->l10n->t('cURL is using an outdated %s version (%s). Please update your operating system or features such as %s will not work reliably.', ['NSS', $versionString, $features]);
|
||||||
|
|
|
@ -467,7 +467,7 @@ class CheckSetupControllerTest extends TestCase {
|
||||||
|
|
||||||
$client->expects($this->at(0))
|
$client->expects($this->at(0))
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('https://www.owncloud.org/', [])
|
->with('https://nextcloud.com/', [])
|
||||||
->will($this->throwException($exception));
|
->will($this->throwException($exception));
|
||||||
|
|
||||||
$this->clientService->expects($this->once())
|
$this->clientService->expects($this->once())
|
||||||
|
@ -501,7 +501,7 @@ class CheckSetupControllerTest extends TestCase {
|
||||||
|
|
||||||
$client->expects($this->at(0))
|
$client->expects($this->at(0))
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('https://www.owncloud.org/', [])
|
->with('https://nextcloud.com/', [])
|
||||||
->will($this->throwException($exception));
|
->will($this->throwException($exception));
|
||||||
|
|
||||||
$this->clientService->expects($this->once())
|
$this->clientService->expects($this->once())
|
||||||
|
|
Loading…
Reference in New Issue