From 8198b376d62eccc0ffddd37e9fb01b8316d13f46 Mon Sep 17 00:00:00 2001 From: Mac Koniarek Date: Mon, 14 Oct 2024 08:41:38 +0100 Subject: [PATCH] 35692 - change key case --- src/DDoSX/Entities/VerificationFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DDoSX/Entities/VerificationFile.php b/src/DDoSX/Entities/VerificationFile.php index 8cbe1d7b..d2e9387e 100644 --- a/src/DDoSX/Entities/VerificationFile.php +++ b/src/DDoSX/Entities/VerificationFile.php @@ -28,7 +28,7 @@ public function getStream() */ public function getName() { - $contentDisposition = $this->response->getHeaders()['Content-Disposition'][0]; + $contentDisposition = array_change_key_case($this->response->getHeaders())['content-disposition'][0]; $filenameMatch = preg_match('/filename="([[:alnum:]]+\.[[:alnum:]]+)"/', $contentDisposition, $filename); if ($filenameMatch === false || empty($filename[1])) { @@ -42,7 +42,7 @@ public function getName() */ public function getContentType() { - $contentType = $this->response->getHeaders()['Content-Type'][0]; + $contentType = array_change_key_case($this->response->getHeaders())['content-type'][0]; if (empty($contentType) === false) { return $contentType; }