]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove range header exception for encryption
authorjknockaert <jasper@knockaert.nl>
Thu, 19 Feb 2015 17:04:10 +0000 (18:04 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 24 Mar 2015 12:19:49 +0000 (13:19 +0100)
revert #10422

lib/private/connector/sabre/filesplugin.php

index 29240e2b6740874d491e4a3622192e3846de6cab..9720519f4c7ae4de2af4cc9a8d7f01533fc161b7 100644 (file)
@@ -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');
-               }
-       }
-
 }