Skip to content

Commit

Permalink
Merge pull request #170 from alexander-schranz/bugfix/content-type-pa…
Browse files Browse the repository at this point in the history
…rsing

Fix problem with content type parsing
  • Loading branch information
dbu authored May 2, 2022
2 parents 2d69d4d + b2eedd2 commit 160ab28
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 160ab28

Please sign in to comment.