From 663cafc84405f7a3c9616643e406c54e0088d597 Mon Sep 17 00:00:00 2001 From: Wolfgang Ziegler // fago Date: Thu, 10 Jan 2019 14:15:39 +0100 Subject: [PATCH] Fix silent fails due to chunked transfer encoding problems. --- lib/Doctrine/CouchDB/HTTP/SocketClient.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Doctrine/CouchDB/HTTP/SocketClient.php b/lib/Doctrine/CouchDB/HTTP/SocketClient.php index 6cdcecf..a3367e4 100644 --- a/lib/Doctrine/CouchDB/HTTP/SocketClient.php +++ b/lib/Doctrine/CouchDB/HTTP/SocketClient.php @@ -293,9 +293,6 @@ public function request($method, $path, $data = null, $raw = false, array $heade } } } while ($bytesToRead > 0); - - // Chop off \r\n from the end. - $body = substr($body, 0, -2); } // Reset the connection if the server asks for it.