mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
update deps
chi 4.1.0 requires some minor code changes
This commit is contained in:
@@ -135,7 +135,8 @@ func initializeRouter(staticFilesPath string, profiler bool) {
|
||||
})
|
||||
|
||||
router.Group(func(router chi.Router) {
|
||||
router.Use(middleware.DefaultCompress)
|
||||
compressor := middleware.NewCompressor(5)
|
||||
router.Use(compressor.Handler)
|
||||
fileServer(router, webStaticFilesPath, http.Dir(staticFilesPath))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user