This commit is contained in:
Ben Corlett 2018-06-05 12:00:19 +00:00 committed by GitHub
commit d0a9a90ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ func (p *OAuthProxy) MakeSessionCookie(req *http.Request, value string, expirati
value = cookie.SignedValue(p.CookieSeed, p.CookieName, value, now)
}
c := p.makeCookie(req, p.CookieName, value, expiration, now)
if len(c.Value) > 4096 {
if len(c.Value) > 3839 {
return splitCookie(c)
}
return []*http.Cookie{c}