summaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-11-23 12:48:54 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-11-23 12:48:54 +0100
commitf359c2a716d69144c15fe9af856d8d985def8416 (patch)
tree6d04aeb8b95a5f4d406ab16a7e9967a180402d90 /ocs
parent3e20032a322f4f97931eca7fbad3416d4b5fb6c4 (diff)
downloadnextcloud-server-f359c2a716d69144c15fe9af856d8d985def8416.tar.gz
nextcloud-server-f359c2a716d69144c15fe9af856d8d985def8416.zip
backport pullrequest #554
better reverse proxy support
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>