Add "Accept-Language" header to sentry request metadata

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
chapril
Thomas Citharel 5 months ago
parent 74cece5796
commit 0c49ddc65b
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
  1. 3
      lib/web/request_context.ex

@ -11,7 +11,8 @@ defmodule Mobilizon.Web.RequestContext do
method: conn.method,
headers: %{
"User-Agent": conn |> Plug.Conn.get_req_header("user-agent") |> List.first(),
Referer: conn |> Plug.Conn.get_req_header("referer") |> List.first()
Referer: conn |> Plug.Conn.get_req_header("referer") |> List.first(),
"Accept-Language": conn |> Plug.Conn.get_req_header("accept-language") |> List.first()
},
query_string: conn.query_string,
env: %{

Loading…
Cancel
Save