1
0
Fork 0

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

InstallerManager should define headers as array
pull/1385/merge
Jordi Boggiano 2012-12-05 07:14:54 -08:00
commit bf28618ae0
1 changed files with 2 additions and 2 deletions

View File

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