Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions middleware/encryptcookie/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type Config struct {

// Array of cookie keys that should not be encrypted.
//
// Optional. Default: []
// Optional. Default: ["csrf_"]
Except []string

// Base64 encoded unique key to encode & decode cookies.
Expand Down Expand Up @@ -94,4 +94,4 @@ type Config struct {
app.Use(encryptcookie.New(encryptcookie.Config{
Key: "secret-thirty-2-character-string",
}))
```
```
2 changes: 1 addition & 1 deletion middleware/encryptcookie/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Config struct {
// ConfigDefault is the default config
var ConfigDefault = Config{
Next: nil,
Except: make([]string, 0),
Except: []string{"csrf_"},
Key: "",
Encryptor: EncryptCookie,
Decryptor: DecryptCookie,
Expand Down