From b2eedd29dd8fc8f5313144123350e4fc8e932488 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Mon, 2 May 2022 10:56:14 +0200 Subject: [PATCH] Fix problem with content type parsing --- src/Jackalope/Transport/Jackrabbit/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jackalope/Transport/Jackrabbit/Client.php b/src/Jackalope/Transport/Jackrabbit/Client.php index ecbc4de1..870350d3 100644 --- a/src/Jackalope/Transport/Jackrabbit/Client.php +++ b/src/Jackalope/Transport/Jackrabbit/Client.php @@ -663,7 +663,7 @@ public function getBinaryStream($path) $path = $this->encodeAndValidatePathForDavex($path); $request = $this->getRequest(Request::GET, $path); $curl = $request->execute(true); - switch ($curl->getHeader('Content-Type')) { + switch (strtolower($curl->getHeader('Content-Type'))) { case 'text/xml; charset=utf-8': case 'text/xml;charset=utf-8': return $this->decodeBinaryDom($curl->getResponse());