summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjknockaert <jasper@knockaert.nl>2015-02-19 18:04:10 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-24 13:19:49 +0100
commita1b68b5a48dacce4933aeab67abae92ea80e2356 (patch)
tree1ae98ae9ce058ead8f8faef4d8bba6a7bb7c9d3e /lib
parentce5d2ab7dbe9e4ca67c12ba1f5506619b639ddb7 (diff)
downloadnextcloud-server-a1b68b5a48dacce4933aeab67abae92ea80e2356.tar.gz
nextcloud-server-a1b68b5a48dacce4933aeab67abae92ea80e2356.zip
Remove range header exception for encryption
revert #10422
Diffstat (limited to 'lib')
-rw-r--r--lib/private/connector/sabre/filesplugin.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php
index 29240e2b674..9720519f4c7 100644
--- a/lib/private/connector/sabre/filesplugin.php
+++ b/lib/private/connector/sabre/filesplugin.php
@@ -70,7 +70,6 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
$this->server->on('propPatch', array($this, 'handleUpdateProperties'));
$this->server->on('afterBind', array($this, 'sendFileIdHeader'));
$this->server->on('afterWriteContent', array($this, 'sendFileIdHeader'));
- $this->server->on('beforeMethod:GET', array($this, 'handleRangeHeaders'));
}
/**
@@ -178,17 +177,4 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
}
}
- /**
- * Remove range headers if encryption is enabled.
- *
- * @param RequestInterface $request
- * @param ResponseInterface $response
- */
- public function handleRangeHeaders(RequestInterface $request, ResponseInterface $response) {
- if (\OC_App::isEnabled('files_encryption')) {
- // encryption does not support range requests (yet)
- $request->removeHeader('range');
- }
- }
-
}