From 1a488bce019304ae344f61d9fab6a1ca26785702 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 23 May 2017 09:31:29 +0200 Subject: [PATCH] Base64 encode debug output to avoid dumping binary and push it to the end of the line --- src/Composer/Util/RemoteFilesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 8ae405ce3..e5f742c95 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -290,7 +290,7 @@ class RemoteFilesystem $e->setHeaders($http_response_header); $e->setStatusCode($this->findStatusCode($http_response_header)); $e->setResponse($result); - $this->io->writeError('Content-Length mismatch, received "'.$result.'" ('.Platform::strlen($result).' out of '.$contentLength.' bytes)', true, IOInterface::DEBUG); + $this->io->writeError('Content-Length mismatch, received '.Platform::strlen($result).' out of '.$contentLength.' bytes: (' . base64_encode($result).')', true, IOInterface::DEBUG); throw $e; }