Skip to content

Commit

Permalink
feat: add sqmk#145 needs testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris53897 committed Aug 14, 2022
1 parent 0b91a45 commit de8ed2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Phue/Transport/Adapter/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public function send(string $address, string $method, string $body = null): stri
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);

if (!is_null($body) && strlen($body)) {

/* @see https://github.com/sqmk/Phue/pull/145 */
curl_setopt($this->curl, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'Accept: application/json']);
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
}

Expand Down

0 comments on commit de8ed2f

Please sign in to comment.