[Pkg-owncloud-commits] [owncloud] 222/457: close file handle after sending sabre response
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 668fafd4d2e56ee47ec67ba0a9768b7e5c3ccafd
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu May 21 17:52:13 2015 +0200
close file handle after sending sabre response
---
lib/private/connector/sabre/filesplugin.php | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php
index 3c79f5a..09d931b 100644
--- a/lib/private/connector/sabre/filesplugin.php
+++ b/lib/private/connector/sabre/filesplugin.php
@@ -89,6 +89,12 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
$this->server->on('afterBind', array($this, 'sendFileIdHeader'));
$this->server->on('afterWriteContent', array($this, 'sendFileIdHeader'));
$this->server->on('afterMethod:GET', [$this,'httpGet']);
+ $this->server->on('afterResponse', function($request, ResponseInterface $response) {
+ $body = $response->getBody();
+ if (is_resource($body)) {
+ fclose($body);
+ }
+ });
}
/**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list