/** * Makes a curl connection */ protected function curl($method, $url, $data = [], $headers = []) { if (!isset($headers['Content-Type'])) { $headers['Content-Type'] = 'application/json'; } return parent::curl($method, $url, $data, $headers); }