This commit is contained in:
+2
-2
@@ -96,7 +96,7 @@ class handler {
|
||||
*/
|
||||
private static function send($data, $callback) {
|
||||
$curl = new curl();
|
||||
$curl->setHeader(array('Content-Type: application/' . $callback->type));
|
||||
$curl->setHeader(['Content-Type: application/' . $callback->type]);
|
||||
$curl->post($callback->url, json_encode($data));
|
||||
|
||||
$response = $curl->getResponse();
|
||||
@@ -104,4 +104,4 @@ class handler {
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user