From 3a0b572564df14c35a27c55b72e7d035bde848f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Mat=C4=9Bj=C4=8Dek?= Date: Thu, 9 Nov 2023 12:47:47 +0100 Subject: [PATCH] Queue: match xml response --- src/Utils/Queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/Queue.php b/src/Utils/Queue.php index 79e3ae7..93bf8ce 100644 --- a/src/Utils/Queue.php +++ b/src/Utils/Queue.php @@ -57,7 +57,7 @@ private function detectDownloadResponse(ResponseInterface $response): void /* @var $contentTypeHeaders array */ $contentTypeHeaders = $response->getHeader('Content-Type'); $contentType = array_shift($contentTypeHeaders); - if ($contentType === 'text/xml;charset=UTF-8') { + if (str_contains($contentType, 'text/xml')) { $xmlResponse = $this->createXmlResponse($response); throw new Exceptions\ServiceUnavailable($xmlResponse->status(), $xmlResponse->code());