header is nulll

This commit is contained in:
sbyrd 2020-11-29 20:10:07 -05:00
parent 0b05aff4c9
commit d42d8c8e25
1 changed files with 5 additions and 3 deletions

View File

@ -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);