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; }