]> source.dussan.org Git - nextcloud-server.git/commitdiff
Detect http protocol in providers.php
authorTom Needham <needham.thomas@gmail.com>
Sun, 28 Oct 2012 23:59:22 +0000 (23:59 +0000)
committerTom Needham <needham.thomas@gmail.com>
Sun, 28 Oct 2012 23:59:22 +0000 (23:59 +0000)
ocs/providers.php

index 4c68ded914e3f1c58f922b96c7be0f103f18bf3f..fa01deb9ad1947bb5aa240f09ec7a5911ff4f15c 100644 (file)
@@ -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>