diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-03-26 15:04:36 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-03-26 15:04:36 +0100 |
commit | daceb1a9ac3005d0bf1f47ceaf823636b72d0dec (patch) | |
tree | 1c48a7c6aaa9dfb52066d83557d7fba70750e239 /lib | |
parent | 0d786c381b8d4656e6bbcb5ef2b33e718ea639eb (diff) | |
download | nextcloud-server-daceb1a9ac3005d0bf1f47ceaf823636b72d0dec.tar.gz nextcloud-server-daceb1a9ac3005d0bf1f47ceaf823636b72d0dec.zip |
Revert "adding unit tests"
This reverts commit 8d327c94a844804d0e7af057866e552bd5aafd17.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/connector/sabre/filesplugin.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php index 1b4b0674a57..e03cac9c537 100644 --- a/lib/private/connector/sabre/filesplugin.php +++ b/lib/private/connector/sabre/filesplugin.php @@ -184,8 +184,11 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin { /** * @param \OC\Connector\Sabre\Node $node */ - public function getETag($node) { - if (isset($_SERVER['HTTP_OC_CHUNKED']) && !isset($_SERVER['X-CHUNKING_COMPLETE'])) { + private function getETag($node) { + if (isset($_SERVER['HTTP_OC_CHUNKED'])) { + if (isset($_SERVER['X-CHUNKING_COMPLETE'])) { + return $node->getETag(); + } return null; } return $node->getETag(); |