From 865d01274daa07112d04f55d67621b5b7aace9a8 Mon Sep 17 00:00:00 2001 From: Stanislav German-Evtushenko Date: Thu, 9 Oct 2025 17:58:25 +0900 Subject: [PATCH] apps, http: Enable compressed (gzip) response This allows transferring JSONs faster over the network. Note that the default behavior doesn't change. The compression is enabled only if the request contains the header `Accept-Encoding` with a supported compression method. Signed-off-by: Stanislav German-Evtushenko --- .../splice/admin/http/HttpAdminService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/src/main/scala/org/lfdecentralizedtrust/splice/admin/http/HttpAdminService.scala b/apps/common/src/main/scala/org/lfdecentralizedtrust/splice/admin/http/HttpAdminService.scala index 3520f79ade..4fbf915593 100644 --- a/apps/common/src/main/scala/org/lfdecentralizedtrust/splice/admin/http/HttpAdminService.scala +++ b/apps/common/src/main/scala/org/lfdecentralizedtrust/splice/admin/http/HttpAdminService.scala @@ -70,7 +70,7 @@ object HttpAdminService { ) private val routes: AtomicReference[List[Route]] = new AtomicReference(List()) private val dynamicRoute: Route = ctx => { - concat((commonAdminRoute +: routes.get())*)(ctx) + encodeResponse(concat((commonAdminRoute +: routes.get())*))(ctx) } val commonAdminRoute: Route =