Skip to content

Commit

Permalink
Queue: match xml response
Browse files Browse the repository at this point in the history
  • Loading branch information
h4kuna committed Nov 9, 2023
1 parent 5dab01d commit 3a0b572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 3a0b572

Please sign in to comment.