summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-24 14:29:01 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-24 14:29:01 +0100
commit331f0196e0678d9b3260019441360dbf8d1609c3 (patch)
tree9e325a8083d472c0b292713e5ec53d8b16c1c694
parenta039768685ecaa9d2fa18aafeab1e28448057351 (diff)
parenta1b68b5a48dacce4933aeab67abae92ea80e2356 (diff)
downloadnextcloud-server-331f0196e0678d9b3260019441360dbf8d1609c3.tar.gz
nextcloud-server-331f0196e0678d9b3260019441360dbf8d1609c3.zip
Merge pull request #15150 from owncloud/sabre-removerangeexceptionforencryption
Remove range header exception for encryption
-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');
- }
- }
-
}