[Pkg-owncloud-commits] [php-sabredav] 95/163: Update CorePlugin.php
David Prévot
taffit at moszumanska.debian.org
Tue May 20 18:54:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag upstream/2.0.0_beta1
in repository php-sabredav.
commit b73b22515b9cd736f91f9accdebd5290fa2f0f01
Author: jknockaert <jasper at knockaert.nl>
Date: Mon Apr 28 21:40:51 2014 +0200
Update CorePlugin.php
formatting
---
lib/Sabre/DAV/CorePlugin.php | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/lib/Sabre/DAV/CorePlugin.php b/lib/Sabre/DAV/CorePlugin.php
index f2b6c42..45a8e17 100644
--- a/lib/Sabre/DAV/CorePlugin.php
+++ b/lib/Sabre/DAV/CorePlugin.php
@@ -168,16 +168,16 @@ class CorePlugin extends ServerPlugin {
// New read/write stream
$newStream = fopen('php://temp','r+');
- // fseek will return 0 only if $streem is seekable (and -1 otherwise)
+ // fseek will return 0 only if $streem is seekable (and -1 otherwise)
// for a seekable $body stream we set the pointer write before copying it
// for a non-seekable $body stream we set the pointer on the copy
- if ((fseek($body, $start, SEEK_SET)) === 0) {
- stream_copy_to_stream($body, $newStream, $end-$start+1, $start);
- rewind($newStream);
- } else {
- stream_copy_to_stream($body, $newStream, $end+1);
- fseek($newStream,$start, SEEK_SET);
- }
+ if ((fseek($body, $start, SEEK_SET)) === 0) {
+ stream_copy_to_stream($body, $newStream, $end-$start+1, $start);
+ rewind($newStream);
+ } else {
+ stream_copy_to_stream($body, $newStream, $end+1);
+ fseek($newStream,$start, SEEK_SET);
+ }
$response->setHeader('Content-Length', $end-$start+1);
$response->setHeader('Content-Range','bytes ' . $start . '-' . $end . '/' . $nodeSize);
--
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