diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-10-28 23:59:22 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-10-28 23:59:22 +0000 |
commit | b2a1b54e9c24637032ea791da4da6e4d5914b5ba (patch) | |
tree | 31f73d0a52e68a25f2df08665551b3482bbe88c9 /ocs | |
parent | 6675a46679ca85d28b1122e832fd0e85d4eb4d15 (diff) | |
download | nextcloud-server-b2a1b54e9c24637032ea791da4da6e4d5914b5ba.tar.gz nextcloud-server-b2a1b54e9c24637032ea791da4da6e4d5914b5ba.zip |
Detect http protocol in providers.php
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/providers.php | 2 |
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> |