Commit ec03d011 authored by Prabhat Burnwal's avatar Prabhat Burnwal Committed by Nikunj Kotecha
Browse files

Issue #3150623 by Prabhat Burnwal: Support for multiple packages in assetLinks

parent 634de1db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -46,7 +46,8 @@ class WellKnownController extends ControllerBase {
      ],
    ];

    $response = new CacheableJsonResponse(json_encode($body, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), 200, [], TRUE);
    // Wrap $body in an array to convert the response to array.
    $response = new CacheableJsonResponse(json_encode([$body], JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), 200, [], TRUE);
    $response->addCacheableDependency($cacheMeta);
    return $response;
  }