From c85059d449bc4701d5eaaf0c669560d58987d3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Wed, 7 Mar 2018 19:17:23 +0100 Subject: [PATCH] [BUGFIX] Inconsistent lib for getUrl GuzzleHttp This makes sure that \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() always returns GuzzleHttp as lib in the report, instead of returning "GuzzleHttp" if an exception was caught and "http" otherwise. --- Classes/Utility/GeneralUtility.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Classes/Utility/GeneralUtility.php b/Classes/Utility/GeneralUtility.php index 72c59e88..3edf8a77 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -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->getHeader('Content-Type'); -- 2.16.2