Project

General

Profile

Actions

Bug #84173

closed

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

Added by Felix Buenemann over 6 years ago. Updated almost 6 years ago.

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #70056: Use guzzleClosedGeorg Ringer2015-09-23

Actions
Related to TYPO3 Core - Bug #84167: Negation Bug in TYPO3 8.7 GuzzleHttp \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl()ClosedMathias Schreiber2018-03-07

Actions
Actions

Also available in: Atom PDF