parent
f14b1ebae2
commit
3faf6fc167
1 changed files with 1 additions and 3 deletions
|
@ -118,8 +118,6 @@ type Codec interface {
|
|||
Decode(name, value string, dst interface{}, maxAge ...int) error
|
||||
}
|
||||
|
||||
var DefaultMaxLength = 1024 * 1024 // 1M
|
||||
|
||||
// New returns a new SecureCookie.
|
||||
//
|
||||
// hashKey is required, used to authenticate values using HMAC. Create it using
|
||||
|
@ -140,7 +138,7 @@ func New(hashKey, blockKey []byte) *SecureCookie {
|
|||
blockKey: blockKey,
|
||||
hashFunc: sha256.New,
|
||||
maxAge: 86400 * 30,
|
||||
maxLength: DefaultMaxLength,
|
||||
maxLength: 4096,
|
||||
sz: GobEncoder{},
|
||||
}
|
||||
if len(hashKey) == 0 {
|
||||
|
|
Loading…
Reference in a new issue