Skip to content

Commit 7a546aa

Browse files
author
Dmitry Pismenny
committed
* try to fix issue with chunk length header error
1 parent d779a3b commit 7a546aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChunkedStreamDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function iterateBuffer()
103103
list($lengthChunk) = explode(';', $lengthChunk, 2);
104104
}
105105
if ($lengthChunk !== '') {
106-
$lengthChunk = ltrim($lengthChunk, "0");
106+
$lengthChunk = ltrim(trim($lengthChunk), "0");
107107
if ($lengthChunk === '') {
108108
// We've reached the end of the stream
109109
$this->reachedEnd = true;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy