From efede2d0d2163156d5944c6dd28b687b6340f0d2 Mon Sep 17 00:00:00 2001 From: Ben Corlett Date: Tue, 5 Jun 2018 12:57:46 +0100 Subject: [PATCH] Reducing cookie split limit as I believe cookie size limit includes the variable name --- oauthproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauthproxy.go b/oauthproxy.go index 34d8495..f436aa6 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -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}