Skip to content

Commit 50486d2

Browse files
committed
Merge pull request #13 from mweibel/patch-1
Elixir Access to structs is only possible with atoms
2 parents e316bca + 1293a4f commit 50486d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oauth2ex/http.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ defmodule OAuth2Ex.HTTP do
6767
end
6868

6969
defp decode_body(response) do
70-
content_type = response.headers["Content-Type"]
70+
content_type = response.headers[String.to_atom("Content-Type")]
7171
cond do
7272
content_type != nil and content_type =~ ~r/application\/json/i ->
7373
response.body |> JSX.decode!

0 commit comments

Comments
 (0)