Add "Accept-Language" header to sentry request metadata

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-04-21 10:33:42 +02:00
parent 74cece5796
commit 0c49ddc65b
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -11,7 +11,8 @@ defmodule Mobilizon.Web.RequestContext do
method: conn.method, method: conn.method,
headers: %{ headers: %{
"User-Agent": conn |> Plug.Conn.get_req_header("user-agent") |> List.first(), "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, query_string: conn.query_string,
env: %{ env: %{