Skip to content

Commit

Permalink
Permit downloading Composer packages over http
Browse files Browse the repository at this point in the history
The Package Index is served over http, which we should probably change.
For the time being, we need to unfatal the fatal.
  • Loading branch information
danielbachhuber committed Mar 24, 2016
1 parent 9d70d2f commit 8b1eff8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions php/commands/package.php
Expand Up @@ -271,9 +271,12 @@ private function package_index() {

if ( !$package_index ) {
$config = new Config();
$config->merge(array('config' => array(
'home' => dirname( $this->get_composer_json_path() ),
)));
$config->merge( array(
'config' => array(
'secure-http' => false,
'home' => dirname( $this->get_composer_json_path() ),
)
));
$config->setConfigSource( new JsonConfigSource( $this->get_composer_json() ) );

try {
Expand Down

0 comments on commit 8b1eff8

Please sign in to comment.