Skip to content

Commit

Permalink
Fix problem with content type parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed May 2, 2022
1 parent 2d69d4d commit b2eedd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jackalope/Transport/Jackrabbit/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b2eedd2

Please sign in to comment.