From a98c2a4542e19ce4fb632bc32fc47c18273161cc Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 1 Mar 2026 19:32:52 -0600 Subject: convert from PHP to Go --- vendor/guzzlehttp/psr7/src/DroppingStream.php | 42 --------------------------- 1 file changed, 42 deletions(-) delete mode 100644 vendor/guzzlehttp/psr7/src/DroppingStream.php (limited to 'vendor/guzzlehttp/psr7/src/DroppingStream.php') diff --git a/vendor/guzzlehttp/psr7/src/DroppingStream.php b/vendor/guzzlehttp/psr7/src/DroppingStream.php deleted file mode 100644 index 8935c80..0000000 --- a/vendor/guzzlehttp/psr7/src/DroppingStream.php +++ /dev/null @@ -1,42 +0,0 @@ -stream = $stream; - $this->maxLength = $maxLength; - } - - public function write($string) - { - $diff = $this->maxLength - $this->stream->getSize(); - - // Begin returning 0 when the underlying stream is too large. - if ($diff <= 0) { - return 0; - } - - // Write the stream or a subset of the stream if needed. - if (strlen($string) < $diff) { - return $this->stream->write($string); - } - - return $this->stream->write(substr($string, 0, $diff)); - } -} -- cgit v1.2.3