Эх сурвалжийг харах

Merge pull request #277 from francoispluchino/master

Fix bug on authorization of file download for the private repositories
Jordi Boggiano 13 жил өмнө
parent
commit
c9a770fe94

+ 1 - 0
src/Composer/Repository/Vcs/VcsDriver.php

@@ -79,6 +79,7 @@ abstract class VcsDriver
         } else if (null !== $this->io->getLastUsername()) {
             $authStr = base64_encode($this->io->getLastUsername() . ':' . $this->io->getLastPassword());
             $params['http'] = array('header' => "Authorization: Basic $authStr\r\n");
+            $this->io->setAuthorization($this->url, $this->io->getLastUsername(), $this->io->getLastPassword());
         }
 
         $ctx = stream_context_create($params);