Something went wrong. Try again.
AtAuth
Something went wrong. Try again.
fix: use req.is('json') instead of req.accepts('json') for content negotiation
req.accepts('json') matches the wildcard */* in browser form submissions, causing native form POSTs to get JSON responses instead of 302 redirects. req.is('json') checks the request Content-Type, which correctly differentiates fetch (application/json) from native forms (x-www-form-urlencoded).
Author Bryan Brooks Date (Feb 19, 2026, 3:53 AM UTC) Commit
Copy SHA
Parent 632e36dc 632e36dca52a5aa4619f44dfb7b72a8c221818e9