Skip to content

Commit

Permalink
Use application/json in request headers
Browse files Browse the repository at this point in the history
  • Loading branch information
p-schneider committed May 13, 2022
1 parent d3b68fc commit 1092840
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/Phue/Transport/Adapter/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function send($address, $method, $body = null)
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);

if (strlen($body)) {
curl_setopt($this->curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept: application/json'));
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
}

Expand Down

0 comments on commit 1092840

Please sign in to comment.