Parcourir la source

Base64 encode debug output to avoid dumping binary and push it to the end of the line

Jordi Boggiano il y a 7 ans
Parent
commit
1a488bce01
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 1
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;
             }