mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue