Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Merge 0b21ff5 into 103d4ff
Browse files Browse the repository at this point in the history
  • Loading branch information
holtkamp committed Jul 9, 2017
2 parents 103d4ff + 0b21ff5 commit 4698668
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/CloudFlare/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,16 @@ protected function request($path, array $data = null, $method = null)
}

$user_agent = __FILE__;
$headers = ["X-Auth-Email: {$this->email}", "X-Auth-Key: {$this->auth_key}", "User-Agent: {$user_agent}"];
$headers = [
"X-Auth-Email: {$this->email}",
"X-Auth-Key: {$this->auth_key}",
"User-Agent: {$user_agent}",
'Content-type: application/json',
];

$ch = curl_init();
curl_setopt_array($ch, $curl_options);

$headers[] = 'Content-type: application/json';
$json_data = json_encode($data);

if ($method === 'post') {
Expand Down

0 comments on commit 4698668

Please sign in to comment.