From 346d32dc387db178e0375ed375365b9cd8d978fd Mon Sep 17 00:00:00 2001 From: Mac Koniarek Date: Mon, 14 Oct 2024 10:54:08 +0100 Subject: [PATCH 1/3] 35750 - change header case on download pss --- src/PSS/Entities/Download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PSS/Entities/Download.php b/src/PSS/Entities/Download.php index b8c0751c..2e35810c 100644 --- a/src/PSS/Entities/Download.php +++ b/src/PSS/Entities/Download.php @@ -26,7 +26,7 @@ public function getStream() */ public function getContentType() { - $contentType = $this->response->getHeaders()['Content-Type']; + $contentType = strtolower($this->response->getHeaders()['Content-Type']); if ($contentType) { return $contentType; } From 06ab1ce58f56bed8bbb9ce809af5b1ebe22fb855 Mon Sep 17 00:00:00 2001 From: Mac Koniarek Date: Mon, 14 Oct 2024 13:59:16 +0100 Subject: [PATCH 2/3] 35750 - change header case on download pss --- src/PSS/Entities/Download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PSS/Entities/Download.php b/src/PSS/Entities/Download.php index 2e35810c..e140e2a8 100644 --- a/src/PSS/Entities/Download.php +++ b/src/PSS/Entities/Download.php @@ -26,7 +26,7 @@ public function getStream() */ public function getContentType() { - $contentType = strtolower($this->response->getHeaders()['Content-Type']); + $contentType = array_change_key_case($this->response->getHeaders())['Content-Type']; if ($contentType) { return $contentType; } From 37d3ddd3f211299b1eb7f602401bed21c7666cbc Mon Sep 17 00:00:00 2001 From: Mac Koniarek Date: Mon, 14 Oct 2024 15:16:53 +0100 Subject: [PATCH 3/3] 35750 - change header case on download pss --- src/PSS/Entities/Download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PSS/Entities/Download.php b/src/PSS/Entities/Download.php index e140e2a8..e1aeaf53 100644 --- a/src/PSS/Entities/Download.php +++ b/src/PSS/Entities/Download.php @@ -26,7 +26,7 @@ public function getStream() */ public function getContentType() { - $contentType = array_change_key_case($this->response->getHeaders())['Content-Type']; + $contentType = array_change_key_case($this->response->getHeaders())['content-type']; if ($contentType) { return $contentType; }