summaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-11-22 19:22:00 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-11-22 19:22:00 +0100
commit6cb377470607f6e4e62fb6ca931ab63fb6938390 (patch)
treea199f86eac10cedcdc3203e0452beb8cc9edb693 /ocs
parentc773d071ee947a9065c492a356367ebbd78bc169 (diff)
downloadnextcloud-server-6cb377470607f6e4e62fb6ca931ab63fb6938390.tar.gz
nextcloud-server-6cb377470607f6e4e62fb6ca931ab63fb6938390.zip
make it possible to manually override the hostname and protocol if the automatic detection from ownCloud fails. This can happen in reverse proxy situations or with loadbalancers setups.
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 43c9dc2aa42..0c7cbaeff08 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>