Skip to content

Commit

Permalink
Merge pull request #13 from mweibel/patch-1
Browse files Browse the repository at this point in the history
Elixir Access to structs is only possible with atoms
  • Loading branch information
parroty committed Mar 13, 2016
2 parents e316bca + 1293a4f commit 50486d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth2ex/http.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ defmodule OAuth2Ex.HTTP do
end

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

0 comments on commit 50486d2

Please sign in to comment.