From c9d79040cbeb5868b12aae5fdd90128842248918 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 20 Oct 2020 15:19:06 +0000 Subject: [PATCH] Fixes notice: Undefined index: nobody in /src/Util/HTTPSignature.php on line 450 --- src/Util/HTTPSignature.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/HTTPSignature.php b/src/Util/HTTPSignature.php index e3244fade3..c5507adf3f 100644 --- a/src/Util/HTTPSignature.php +++ b/src/Util/HTTPSignature.php @@ -447,7 +447,7 @@ class HTTPSignature $curl_opts = $opts; $curl_opts['header'] = $header; - if ($opts['nobody']) { + if (!empty($opts['nobody'])) { $curlResult = DI::httpRequest()->head($request, $curl_opts); } else { $curlResult = DI::httpRequest()->get($request, $curl_opts);