Skip to content

Commit 506f2c1

Browse files
authored
apps, http: Enable compressed (gzip) response (#2626)
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 <ginermail@gmail.com>
1 parent 22582e9 commit 506f2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/src/main/scala/org/lfdecentralizedtrust/splice/admin/http/HttpAdminService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ object HttpAdminService {
7070
)
7171
private val routes: AtomicReference[List[Route]] = new AtomicReference(List())
7272
private val dynamicRoute: Route = ctx => {
73-
concat((commonAdminRoute +: routes.get())*)(ctx)
73+
encodeResponse(concat((commonAdminRoute +: routes.get())*))(ctx)
7474
}
7575

7676
val commonAdminRoute: Route =

0 commit comments

Comments
 (0)