Skip to content
Snippets Groups Projects
Commit b2a1b54e authored by Tom Needham's avatar Tom Needham
Browse files

Detect http protocol in providers.php

parent 6675a466
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment