diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-10-30 18:05:30 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-10-30 18:05:30 +0100 |
commit | bafb86fb9fce1ad4457c6e2f7aba9604e33908ce (patch) | |
tree | 7a0e71b14f5afd9edd0d6824841a4471d6c60a7a /lib/private/response.php | |
parent | 6911d8f0a4e688f3c84f2dd117424f887820750a (diff) | |
download | nextcloud-server-bafb86fb9fce1ad4457c6e2f7aba9604e33908ce.tar.gz nextcloud-server-bafb86fb9fce1ad4457c6e2f7aba9604e33908ce.zip |
Use getHttpProtocol instead of $_SERVER
Diffstat (limited to 'lib/private/response.php')
-rw-r--r-- | lib/private/response.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/response.php b/lib/private/response.php index 2cd1d990e51..b0eb8adc4d5 100644 --- a/lib/private/response.php +++ b/lib/private/response.php @@ -74,7 +74,7 @@ class OC_Response { * @param int $status a HTTP status code, see also the STATUS constants */ static public function setStatus($status) { - $protocol = $_SERVER['SERVER_PROTOCOL']; + $protocol = \OC::$server->getRequest()->getHttpProtocol(); switch($status) { case self::STATUS_NOT_MODIFIED: $status = $status . ' Not Modified'; |