[BUGFIX] Unify value for $report['lib'] to GuzzleHttp 40/56040/3
authorFelix Buenemann <felix.buenemann@gmail.com>
Wed, 7 Mar 2018 19:30:43 +0000 (20:30 +0100)
committerBenni Mack <benni@typo3.org>
Sat, 10 Mar 2018 08:31:14 +0000 (09:31 +0100)
GeneralUtility::getUrl() now always returns 'GuzzleHttp' as lib
in the report, instead of returning
"GuzzleHttp" if an exception was caught and "http" otherwise.

Resolves: #84170
Related: #70056
Releases: master, 8.7
Change-Id: I6a28cb7921a3d784c37912c12f9b250f6b4d493c
Reviewed-on: https://review.typo3.org/56040
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index 673cf5a..44725e4 100644 (file)
@@ -1843,7 +1843,6 @@ class GeneralUtility
                 $content .= $response->getBody()->getContents();
             }
             if (isset($report)) {
-                $report['lib'] = 'http';
                 if ($response->getStatusCode() >= 300 && $response->getStatusCode() < 400) {
                     $report['http_code'] = $response->getStatusCode();
                     $report['content_type'] = $response->getHeaderLine('Content-Type');