Added option to toggle gzip as it causes air browser refresh to break

This commit is contained in:
2025-02-13 23:59:08 +11:00
parent 6c02e3fe90
commit a0e7f77843
3 changed files with 6 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ func NewServer(
handler = middleware.Favicon(handler)
// Gzip
handler = middleware.Gzip(handler)
handler = middleware.Gzip(handler, config.GZIP)
// Start the timer for the request chain so logger can have accurate info
handler = middleware.StartTimer(handler)