fix(template): avoid race when rendering concurrently
Render bound per-request, language-specific functions (t, plural, elapsed) onto the shared template before executing it. Doing that while other goroutines execute the same template races on its function map and can render a response using another request's language. Clone the template before binding those functions so each request executes its own copy. Fixes #4380
S
Salih Muhammed committed
56d0b31cb6aa1376c17b534e19ca0a30aeb904e0
Parent: 5f710f9
Committed by fguillot <323546+fguillot@users.noreply.github.com>
on 7/3/2026, 12:20:55 AM