From a0afb88d5d927cb0cb8d33160d9bc2d7ee68c551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pluchino?= Date: Sun, 5 Feb 2012 20:21:06 +0100 Subject: [PATCH] Fix bug on authorization of file download for the private repositories --- src/Composer/Repository/Vcs/VcsDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Repository/Vcs/VcsDriver.php b/src/Composer/Repository/Vcs/VcsDriver.php index cf7af1fa9..6addf26e7 100644 --- a/src/Composer/Repository/Vcs/VcsDriver.php +++ b/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);