Actions
Bug #84170
closedInconsistent lib value in \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() since GuzzleHttp switch
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2018-03-07
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
Since the conversion of \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl()
from cURL to GuttleHttp in TYPO3 8 (see #70056), the return value for the lib
ken in the $report
is inconsistent between errors (Guzzle Exception) and other responses.
If an exception is captured the lib
value returns GuzzleHttp
(which is useful), in other cases it returns http
(which is pretty non-descript).
The value should not change between a (captured) exception and a normal response, so I suggest always using GuzzleHttp
, since the old value was cURL
.
The proposed patch against master drops http
, so GuzzleHttp
is always returned. The patch also applies fine to the 8.7 branch with a line offset.
Files
Actions