Detect http protocol in providers.php

This commit is contained in:
Tom Needham 2012-10-28 23:59:22 +00:00
parent 6675a46679
commit b2a1b54e9c
1 changed files with 1 additions and 1 deletions

View 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>