[Pkg-owncloud-commits] [php-sabredav] 04/06: No longer rewinding the stream before output. There might be side effects, so let's keep an eye on it.

David Prévot taffit at moszumanska.debian.org
Sat Nov 30 15:44:21 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag version-1.2.5
in repository php-sabredav.

commit b2a1cb51649983707c867c53fb78eb970ba99309
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Sun Aug 1 19:35:15 2010 +0200

    No longer rewinding the stream before output. There might be side effects, so let's keep an eye on it.
    
    Fixes Issue 67.
---
 lib/Sabre/HTTP/Response.php | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/Sabre/HTTP/Response.php b/lib/Sabre/HTTP/Response.php
index fe0b394..df7c339 100644
--- a/lib/Sabre/HTTP/Response.php
+++ b/lib/Sabre/HTTP/Response.php
@@ -123,7 +123,6 @@ class Sabre_HTTP_Response {
      * Sends the entire response body
      *
      * This method can accept either an open filestream, or a string.
-     * Note that this method will first rewind the stream before output.
      * 
      * @param mixed $body 
      * @return void
@@ -132,7 +131,6 @@ class Sabre_HTTP_Response {
 
         if (is_resource($body)) {
         
-            rewind($body);
             fpassthru($body);
 
         } else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list