mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Set proper HTTP-Headers
This commit is contained in:
@@ -161,6 +161,11 @@ class Dcl extends CI_Controller {
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
|
||||
$headers = [
|
||||
'Content-Type: application/json',
|
||||
'Accept: application/json'
|
||||
];
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||
|
||||
$payload=[];
|
||||
$payload['key']=$key_info['token'];
|
||||
|
||||
Reference in New Issue
Block a user