diff --git a/phoenix-conn.md b/phoenix-conn.md index b0aaef317..9f3bdd540 100644 --- a/phoenix-conn.md +++ b/phoenix-conn.md @@ -26,7 +26,8 @@ conn.req_headers # → [{"content-type", "text/plain"}] ``` ```elixir -conn |> get_req_header("referer") +conn |> get_req_header("content-type") +# → ["text/plain"] ``` ### Updating conn