Skip to content

Commit

Permalink
Merge pull request #782 from Thracky/master
Browse files Browse the repository at this point in the history
Changed DefaultCompress as it was previously deprecated and now removed
  • Loading branch information
cj123 authored Feb 17, 2020
2 parents 9a2624f + 2dd4c50 commit 9ef82f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ func Router(
) 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)
Expand Down

0 comments on commit 9ef82f8

Please sign in to comment.