diff --git a/middleware/compress.md b/middleware/compress.md index 8f492ed769..1b2db1cfb8 100644 --- a/middleware/compress.md +++ b/middleware/compress.md @@ -21,7 +21,7 @@ func main() { app.Use(middleware.Compress(middleware.CompressLevelBestSpeed)) // Custom Config - app.Use(middleware.CompressWithConfig(middleware.LoggerConfig{ + app.Use(middleware.CompressWithConfig(middleware.CompressConfig{ Next: func(ctx *fiber.Ctx) bool { return strings.HasPrefix(ctx.Path(), "/static") }, @@ -63,4 +63,4 @@ var CompressConfigDefault = CompressConfig{ Next: nil, Level: CompressLevelDefault, } -``` \ No newline at end of file +```