Merge pull request #1389 from fernandomantoan/solve-header-content-proxy-bug
InstallerManager should define headers as arraypull/1385/merge
commit
bf28618ae0
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue