phoenix-conn: specify that get_req_header returns a list

This commit is contained in:
Rico Sta. Cruz 2018-01-19 18:42:18 +08:00
parent e556b57688
commit 6f21603bb7
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 2 additions and 1 deletions

View File

@ -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