From d42d8c8e2527c97bad83c8a25d94ce1e13731c31 Mon Sep 17 00:00:00 2001 From: sbyrd Date: Sun, 29 Nov 2020 20:10:07 -0500 Subject: [PATCH] header is nulll --- podmanImageManager.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);