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-07 10:21:00 +01:00
2026-07-24 09:51:30 +01:00
2026-07-28 15:07:19 +01:00
2026-07-29 10:35:07 +01:00
2026-08-11 15:03:03 +00:00
2026-08-12 10:52:43 +00:00
2026-07-26 14:46:38 +01:00
2026-07-28 10:30:29 +01:00
S
Description
No description provided
14 MiB
agent/v1.3.4
Latest
2026-09-07 15:50:25 +00:00
Languages
JavaScript 71.9%
TypeScript 15.1%
Go 12.8%