From 0a9627b2b79ecc00ceb05583da0676f1a96025a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Wed, 7 Mar 2018 18:47:20 +0100 Subject: [PATCH] [BUGFIX] Negation bug in getUrl empty body check This fixes a negation bug introduced when the GeneralUtility::getUrl code was converted to use GuzzleHttp instead of cURL. --- Classes/Utility/GeneralUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Utility/GeneralUtility.php b/Classes/Utility/GeneralUtility.php index 72c59e88..ebeb1b1a 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -1849,7 +1849,7 @@ class GeneralUtility $report['content_type'] = $response->getHeader('Content-Type'); $report['error'] = $response->getStatusCode(); $report['message'] = $response->getReasonPhrase(); - } elseif (!empty($content)) { + } elseif (empty($content)) { $report['error'] = $response->getStatusCode(); $report['message'] = $response->getReasonPhrase(); } elseif ($includeHeader) { -- 2.16.2