Issue Bug Closed

#84173TYPO3 8.7 GuzzleHttp \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() returns content_type as array instead of string

Felix Buenemann 03/07/18, 22:13 updated 10/02/18, 10:50

Description

There is a breaking change in the report format of \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() introduced by the change form cURL to GuzzleHttp in #70056.

The old cURL based implementation returned the content_type in the $report as a string fetched via curl_getinfo(), but the new code uses $response->getHeader('Content-Type') which returns an array of strings.

In order to not break backward compatibility the code should use $response->getHeaderLine('Content-Type') instead.

Reviews 2