Add "Accept-Language" header to sentry request metadata
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
74cece5796
commit
0c49ddc65b
|
@ -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: %{
|
||||||
|
|
Loading…
Reference in a new issue