diff --git a/web/web.go b/web/web.go index 2eaac7f5..4aee3f84 100644 --- a/web/web.go +++ b/web/web.go @@ -42,7 +42,6 @@ func Setup(opts *cnf.Options) (err error) { s.Use(mw.Fail()) // Catch panics s.Use(mw.Logs()) // Log requests s.Use(mw.Sock()) // Log requests - s.Use(mw.Gzip()) // Gzip responses // Add trace information @@ -82,6 +81,10 @@ func Setup(opts *cnf.Options) (err error) { AllowedLength: 1 << 20, // 1mb })) + // Compress responses + + s.Use(mw.Gzip()) + // Log successful start log.WithPrefix("web").Infof("Started web server on %s", opts.Conn.Web)