Browse Source

Merge pull request #1389 from fernandomantoan/solve-header-content-proxy-bug

InstallerManager should define headers as array
Jordi Boggiano 12 years ago
parent
commit
bf28618ae0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Composer/Installer/InstallationManager.php

+ 2 - 2
src/Composer/Installer/InstallationManager.php

@@ -245,7 +245,7 @@ class InstallationManager
                     $opts = array('http' =>
                         array(
                             'method'  => 'POST',
-                            'header'  => 'Content-type: application/x-www-form-urlencoded',
+                            'header'  => array('Content-type: application/x-www-form-urlencoded'),
                             'content' => http_build_query($params, '', '&'),
                             'timeout' => 3,
                         )
@@ -269,7 +269,7 @@ class InstallationManager
             $opts = array('http' =>
                 array(
                     'method'  => 'POST',
-                    'header'  => 'Content-Type: application/json',
+                    'header'  => array('Content-Type: application/json'),
                     'content' => json_encode($postData),
                     'timeout' => 6,
                 )