diff --git a/podmanImageManager.php b/podmanImageManager.php index cb9f96c..433658b 100644 --- a/podmanImageManager.php +++ b/podmanImageManager.php @@ -32,9 +32,11 @@ class podmanImageManager implements podmanImageManagerInterface } //####### SET SETTINGS ######### - curl_setopt( $curl, CURLOPT_HTTPHEADER, - $Headers - ); + if ($Headers) + { + curl_setopt( $curl, CURLOPT_HTTPHEADER, $Headers); + } + curl_setopt($curl, CURLOPT_URL, $URL); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // This returns the page to us at curl_exec curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);