Skip to content

Commit

Permalink
Set Content-Type in request
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 18, 2013
1 parent aefabf5 commit a8bd9e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/error_report.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function PMA_sendErrorReport($report)
array(
'method' => 'POST',
'content' => $data_string,
'header' => "Content-Type: multipart/form-data\r\n",
)
);
if (strlen($GLOBALS['cfg']['ProxyUrl'])) {
Expand All @@ -138,7 +139,8 @@ function PMA_sendErrorReport($report)
$auth = base64_encode(
$GLOBALS['cfg']['ProxyUser'] . ':' . $GLOBALS['cfg']['ProxyPass']
);
$context['http']['header'] = 'Proxy-Authorization: Basic ' . $auth;
$context['http']['header'] .= 'Proxy-Authorization: Basic '
. $auth . "\r\n";
}
}
$response = file_get_contents(
Expand Down

0 comments on commit a8bd9e5

Please sign in to comment.