diff --git a/endpoints/logos/search.php b/endpoints/logos/search.php index f3105a5..4df345d 100644 --- a/endpoints/logos/search.php +++ b/endpoints/logos/search.php @@ -8,6 +8,7 @@ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // Convert all environment variable keys to lowercase $envVars = array_change_key_case($_SERVER, CASE_LOWER); @@ -78,4 +79,4 @@ return $imageUrls; } -?> \ No newline at end of file +?>