[BUGFIX] Treat empty responses as error in GeneralUtility::getUrl
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Utility / GeneralUtility.php
index 6134e6b..ccf86d1 100644 (file)
@@ -2086,7 +2086,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) {