diff options
Diffstat (limited to 'lib/Service/CapabilitiesService.php')
-rw-r--r-- | lib/Service/CapabilitiesService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/CapabilitiesService.php b/lib/Service/CapabilitiesService.php index 9d6583b0..981b3640 100644 --- a/lib/Service/CapabilitiesService.php +++ b/lib/Service/CapabilitiesService.php @@ -89,7 +89,7 @@ class CapabilitiesService { if ($remoteHost === '') { return []; } - $capabilitiesEndpoint = $remoteHost . '/hosting/capabilities'; + $capabilitiesEndpoint = rtrim($remoteHost, '/') . '/hosting/capabilities'; $client = $this->clientService->newClient(); $options = ['timeout' => 45, 'nextcloud' => ['allow_local_address' => true]]; |