Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ocs
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-10-29 03:59:22 +0400
committerTom Needham <needham.thomas@gmail.com>2012-10-29 03:59:22 +0400
commitb2a1b54e9c24637032ea791da4da6e4d5914b5ba (patch)
tree31f73d0a52e68a25f2df08665551b3482bbe88c9 /ocs
parent6675a46679ca85d28b1122e832fd0e85d4eb4d15 (diff)
Detect http protocol in providers.php
Diffstat (limited to 'ocs')
-rw-r--r--ocs/providers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/providers.php b/ocs/providers.php
index 4c68ded914e..fa01deb9ad1 100644
--- a/ocs/providers.php
+++ b/ocs/providers.php
@@ -23,7 +23,7 @@
require_once '../lib/base.php';
-$url='http://'.substr(OCP\Util::getServerHost().$_SERVER['REQUEST_URI'], 0, -17).'ocs/v1.php/';
+$url=OCP\Util::getServerProtocol().'://'.substr(OCP\Util::getServerHost().$_SERVER['REQUEST_URI'], 0, -17).'ocs/v1.php/';
echo('
<providers>