Files
vantage/server/internal
mrhid6 2f60b81962 fix: Stop the session middleware writing two responses on an expired cookie
sessionFromCookie already writes "session expired" when a cookie was
presented and rejected with no bearer to fall through to. Middleware
called sessionFromToken anyway, which wrote a second "not authenticated"
body onto the same response for every ordinary browser-session timeout -
gin logged "superfluous response.WriteHeader call" on ordinary use, not a
rare edge case.

Guard on c.IsAborted() after sessionFromCookie: true only in that one
rejected-cookie-no-bearer branch, so it short-circuits there while the
other three credential paths (no credential, bearer only, stale cookie
plus valid bearer) are unaffected.
2026-08-12 14:35:20 +00:00
..
2026-08-10 14:07:17 +01:00
2026-07-27 15:59:45 +01:00
2026-08-10 14:07:17 +01:00
2026-08-12 14:28:10 +00:00
2026-07-31 15:05:21 +01:00
2026-08-12 14:28:10 +00:00
2026-08-07 15:33:50 +01:00
2026-08-07 15:33:50 +01:00