fix cache docs error (#1612)

pull/1616/head
liaohongxing 2021-11-03 23:49:26 +08:00 committed by GitHub
parent 85591e8b45
commit a6aea1cdc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,
}