Skip to content

Commit 46d1dfe

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Service/ConnectivityService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ 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, array_merge(RemoteOptionsService::getDefaultOptions(), [
69+
'body' => json_encode(['callbackUrl' => $callbackUrl . '/status.php']), 'headers' => ['Content-Type' => 'application/json']
70+
]));
6971
} catch (ClientException $e) {
7072
$result = $e->getResponse();
7173
}

0 commit comments

Comments
 (0)