We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90d1518 commit fd4da75Copy full SHA for fd4da75
src/Utils/Queue.php
@@ -57,7 +57,7 @@ private function detectDownloadResponse(ResponseInterface $response): void
57
/* @var $contentTypeHeaders array */
58
$contentTypeHeaders = $response->getHeader('Content-Type');
59
$contentType = array_shift($contentTypeHeaders);
60
- if (str_contains($contentType, 'text/xml')) {
+ if ($contentType !== null && str_contains($contentType, 'text/xml')) {
61
$xmlResponse = $this->createXmlResponse($response);
62
63
throw new Exceptions\ServiceUnavailable($xmlResponse->status(), $xmlResponse->code());
0 commit comments