You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Callers can now adjust the cookie before it's written without falling
back to the longer SetCookie signature:
c.FastSetCookie("session", "v", 3600, func(ck *http.Cookie) {
ck.Secure = true
ck.SameSite = http.SameSiteStrictMode
})
Defaults (path=/, httpOnly=true, secure=false) are preserved, so all
existing FastSetCookie calls keep working unchanged. Implementation
now constructs the http.Cookie directly and applies opts in order,
letting any field be overridden including Path / MaxAge / Domain.
Tests cover both the no-opts default and the multi-opt override path.
Both READMEs show the HTTPS Secure + SameSite snippet.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments