diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-03-24 14:29:01 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-03-24 14:29:01 +0100 |
commit | 331f0196e0678d9b3260019441360dbf8d1609c3 (patch) | |
tree | 9e325a8083d472c0b292713e5ec53d8b16c1c694 /lib/private | |
parent | a039768685ecaa9d2fa18aafeab1e28448057351 (diff) | |
parent | a1b68b5a48dacce4933aeab67abae92ea80e2356 (diff) | |
download | nextcloud-server-331f0196e0678d9b3260019441360dbf8d1609c3.tar.gz nextcloud-server-331f0196e0678d9b3260019441360dbf8d1609c3.zip |
Merge pull request #15150 from owncloud/sabre-removerangeexceptionforencryption
Remove range header exception for encryption
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/connector/sabre/filesplugin.php | 14 |
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'); - } - } - } |