Actions
Bug #84173
closedTYPO3 8.7 GuzzleHttp \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() returns content_type as array instead of string
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-03-07
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
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.
Actions