From 524370514fdb05db88af3d3dde18c378010a46bd Mon Sep 17 00:00:00 2001 From: John Simpson Date: Sun, 16 Feb 2020 17:15:39 -0500 Subject: [PATCH 1/2] Changed DefaultCompress as it was previously deprecated and now removed --- router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router.go b/router.go index 4e65aa862..0e2cb2dac 100644 --- a/router.go +++ b/router.go @@ -66,10 +66,10 @@ func Router( kissMyRankHandler *KissMyRankHandler, ) http.Handler { r := chi.NewRouter() - + compressor := middleware.Compress(5) r.Use(middleware.RequestID) r.Use(middleware.RealIP) - r.Use(middleware.DefaultCompress) + r.Use(compressor) r.Use(panicHandler) r.HandleFunc("/login", accountHandler.login) From 2dd4c5077b359cd7a00fdc1ed78cb06b361cd79f Mon Sep 17 00:00:00 2001 From: John Simpson Date: Mon, 17 Feb 2020 08:08:30 -0500 Subject: [PATCH 2/2] Fix up formatting --- router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/router.go b/router.go index 0e2cb2dac..0a196ceda 100644 --- a/router.go +++ b/router.go @@ -66,6 +66,7 @@ func Router( kissMyRankHandler *KissMyRankHandler, ) http.Handler { r := chi.NewRouter() + compressor := middleware.Compress(5) r.Use(middleware.RequestID) r.Use(middleware.RealIP)