[BUGFIX] Restore getUrl support for list of headers
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Controller / ErrorController.php
index 6d0f1b5..c6c816a 100644 (file)
@@ -182,8 +182,8 @@ class ErrorController
             }
             // Prepare headers
             $requestHeaders = [
-                'User-agent: ' . GeneralUtility::getIndpEnv('HTTP_USER_AGENT'),
-                'Referer: ' . GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL')
+                'User-agent' => GeneralUtility::getIndpEnv('HTTP_USER_AGENT'),
+                'Referer' => GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL')
             ];
             $report = [];
             $res = GeneralUtility::getUrl($errorHandler, 1, $requestHeaders, $report);