From c7b639b6435dc40d8f226550cf83e04129eefbdb Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 20 Apr 2023 10:36:20 +0200 Subject: [PATCH] feat(cli,app): compress http responses --- cmd/cli/command/app/run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/cli/command/app/run.go b/cmd/cli/command/app/run.go index a03c4a9..571c156 100644 --- a/cmd/cli/command/app/run.go +++ b/cmd/cli/command/app/run.go @@ -221,6 +221,7 @@ func runApp(ctx context.Context, path string, address string, storageFile string router := chi.NewRouter() router.Use(middleware.Logger) + router.Use(middleware.Compress(5)) // Add app handler router.Handle("/*", handler)