Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / locale / locale.batch.inc
index 7edc85d676a17a201b8c24541da163a9962341a6..b509c2542b55f77616c1b575d24cde03558986ed 100644 (file)
@@ -238,11 +238,13 @@ function locale_translation_http_check($uri) {
   $logger = \Drupal::logger('locale');
   try {
     $actual_uri = NULL;
-    $response = \Drupal::service('http_client_factory')->fromOptions(['allow_redirects' => [
-      'on_redirect' => function(RequestInterface $request, ResponseInterface $response, UriInterface $request_uri) use (&$actual_uri) {
-        $actual_uri = (string) $request_uri;
-      }
-    ]])->head($uri);
+    $response = \Drupal::service('http_client_factory')->fromOptions([
+      'allow_redirects' => [
+        'on_redirect' => function (RequestInterface $request, ResponseInterface $response, UriInterface $request_uri) use (&$actual_uri) {
+          $actual_uri = (string) $request_uri;
+        }
+      ],
+    ])->head($uri);
     $result = [];
 
     // Return the effective URL if it differs from the requested.