Skip to content

Commit

Permalink
fix cache docs error (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
liaohongxing committed Nov 3, 2021
1 parent 85591e8 commit a6aea1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/cache/README.md
Expand Up @@ -101,7 +101,7 @@ var ConfigDefault = Config{
CacheHeader: "X-Cache",
CacheControl: false,
KeyGenerator: func(c *fiber.Ctx) string {
return c.Path()
return utils.CopyString(c.Path())
},
Storage: nil,
}
Expand Down

0 comments on commit a6aea1c

Please sign in to comment.