1
0
Fork 0

Fix bug on authorization of file download for the private repositories

pull/277/head
François Pluchino 2012-02-05 20:21:06 +01:00
parent 39ab5017aa
commit a0afb88d5d
1 changed files with 1 additions and 0 deletions

View File

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