diff options
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 39a185d02a7..9b499574da1 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -169,6 +169,16 @@ class Util { } /** + * @brief Returns the server protocol + * @returns the server protocol + * + * Returns the server protocol. It respects reverse proxy servers and load balancers + */ + public static function getServerProtocol() { + return(\OC_Helper::serverProtocol()); + } + + /** * @brief Creates path to an image * @param $app app * @param $image image name |