diff --git a/http-server/Message/Stream.php b/http-server/Message/Stream.php index c1ed7288..c7ba2bc6 100644 --- a/http-server/Message/Stream.php +++ b/http-server/Message/Stream.php @@ -134,7 +134,7 @@ class Stream implements StreamInterface public function write($string): int { $this->body = $string; - $this->size = strlen($this->body); + $this->size = 0; return $this->size; } @@ -146,7 +146,7 @@ class Stream implements StreamInterface public function append(string $string): int { $this->body .= $string; - $this->size = strlen($this->body); + $this->size = 0; return $this->size; }