feat(controller,app): compress http responses
Some checks reported errors
arcad/emissary/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
wpetit 2023-04-20 10:59:27 +02:00
parent 813f837291
commit bb03b3a54a

View File

@ -48,6 +48,7 @@ func (s *Server) Start(ctx context.Context, addr string) (err error) {
router := chi.NewRouter() router := chi.NewRouter()
router.Use(middleware.Logger) router.Use(middleware.Logger)
router.Use(middleware.Compress(5))
handler := edgeHTTP.NewHandler(s.handlerOptions...) handler := edgeHTTP.NewHandler(s.handlerOptions...)
if err := handler.Load(s.bundle); err != nil { if err := handler.Load(s.bundle); err != nil {