using Http::getData instead file_get_contents

This commit is contained in:
Ibnu Maksum
2023-09-11 14:26:58 +07:00
parent c57bbeace3
commit b5ddf37649
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
class Http
{
public static function getData($url, $headers)
public static function getData($url, $headers = [])
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);