Skip to content

Commit fd4da75

Browse files
committed
Queue: fix type
1 parent 90d1518 commit fd4da75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Queue.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function detectDownloadResponse(ResponseInterface $response): void
5757
/* @var $contentTypeHeaders array */
5858
$contentTypeHeaders = $response->getHeader('Content-Type');
5959
$contentType = array_shift($contentTypeHeaders);
60-
if (str_contains($contentType, 'text/xml')) {
60+
if ($contentType !== null && str_contains($contentType, 'text/xml')) {
6161
$xmlResponse = $this->createXmlResponse($response);
6262

6363
throw new Exceptions\ServiceUnavailable($xmlResponse->status(), $xmlResponse->code());

0 commit comments

Comments
 (0)