[TASK] Send uid of sys_redirect in Response Header
[Packages/TYPO3.CMS.git] / typo3 / sysext / redirects / Classes / Http / Middleware / RedirectHandler.php
index 2cef7ad..12380f4 100644 (file)
@@ -78,7 +78,11 @@ class RedirectHandler implements MiddlewareInterface, LoggerAwareInterface
      */
     protected function buildRedirectResponse(UriInterface $uri, array $redirectRecord): ResponseInterface
     {
-        return new RedirectResponse($uri, (int)$redirectRecord['target_statuscode'], ['X-Redirect-By' => 'TYPO3']);
+        return new RedirectResponse(
+            $uri,
+            (int)$redirectRecord['target_statuscode'],
+            ['X-Redirect-By' => 'TYPO3 Redirect ' . $redirectRecord['uid']]
+        );
     }
 
     /**