Skip to content

Commit baf1e8c

Browse files
committed
change Content-Type header key to correctly parse json response
1 parent 227223a commit baf1e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ueberauth/strategy/twitter/internal.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule Ueberauth.Strategy.Twitter.OAuth.Internal do
2626
def decode_body({:ok, response}) do
2727
content_type =
2828
Enum.find_value(response.headers, fn
29-
{"content-type", val} -> val
29+
{"Content-Type", val} -> val
3030
_ -> nil
3131
end)
3232

0 commit comments

Comments
 (0)