Skip to content

Commit a092242

Browse files
committed
fix: Use 204 status endpoint
Signed-off-by: Julius Knorr <jus@bitgrid.net>
1 parent b938674 commit a092242

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/ConnectivityService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testWopiAccess(?OutputInterface $output = null): void {
6565
$callbackUrl = $this->appConfig->getNextcloudUrl() ?: trim($this->urlGenerator->getAbsoluteURL(''), '/');
6666

6767
try {
68-
$result = $client->post($url, ['body' => json_encode(['callbackUrl' => $callbackUrl . '/status.php']), 'headers' => ['Content-Type' => 'application/json']]);
68+
$result = $client->post($url, ['body' => json_encode(['callbackUrl' => $callbackUrl . '/index.php/204']), 'headers' => ['Content-Type' => 'application/json']]);
6969
} catch (ClientException $e) {
7070
$result = $e->getResponse();
7171
}

0 commit comments

Comments
 (0)