From 16f5965fd444a4f5d28906623a5ceba5e41cc138 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 11 Oct 2020 23:25:14 +0200 Subject: [PATCH] Revert "Use last entry for Content-Type" This reverts commit e17befb7 --- src/Network/GuzzleResponse.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Network/GuzzleResponse.php b/src/Network/GuzzleResponse.php index 18155d1d29..72d87ae9fe 100644 --- a/src/Network/GuzzleResponse.php +++ b/src/Network/GuzzleResponse.php @@ -88,13 +88,7 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface /** {@inheritDoc} */ public function getContentType() { - $contentTypes = $this->getHeader('Content-Type') ?? []; - $countTypes = count($contentTypes); - if ($countTypes > 0) { - return $contentTypes[$countTypes - 1]; - } else { - return ''; - } + return implode($this->getHeader('Content-Type')); } /** {@inheritDoc} */