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
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
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);