diff --git a/mix.exs b/mix.exs index 3f55742..f4afa5a 100644 --- a/mix.exs +++ b/mix.exs @@ -25,7 +25,7 @@ defmodule OAuth2.Mixfile do {:httpoison, "~> 0.6"}, {:poison, "~> 1.3"}, {:cowboy, "~> 1.0", only: :test}, - {:plug, "~> 0.12"}, + {:plug, "~> 1.0"}, # Docs dependencies {:earmark, "~> 0.1", only: :docs}, diff --git a/mix.lock b/mix.lock index 260b9eb..a80a22a 100644 --- a/mix.lock +++ b/mix.lock @@ -1,11 +1,11 @@ -%{"cowboy": {:hex, :cowboy, "1.0.0"}, +%{"cowboy": {:hex, :cowboy, "1.0.2"}, "cowlib": {:hex, :cowlib, "1.0.1"}, "earmark": {:hex, :earmark, "0.1.15"}, "ex_doc": {:hex, :ex_doc, "0.7.2"}, "hackney": {:hex, :hackney, "1.0.6"}, "httpoison": {:hex, :httpoison, "0.6.2"}, "idna": {:hex, :idna, "1.0.2"}, - "plug": {:hex, :plug, "0.12.0"}, + "plug": {:hex, :plug, "1.0.0"}, "poison": {:hex, :poison, "1.3.1"}, - "ranch": {:hex, :ranch, "1.0.0"}, + "ranch": {:hex, :ranch, "1.1.0"}, "ssl_verify_hostname": {:hex, :ssl_verify_hostname, "1.0.1"}} diff --git a/test/oauth2/strategy/auth_code_test.exs b/test/oauth2/strategy/auth_code_test.exs index c9f7153..09ae26b 100644 --- a/test/oauth2/strategy/auth_code_test.exs +++ b/test/oauth2/strategy/auth_code_test.exs @@ -21,11 +21,11 @@ defmodule OAuth2.Strategy.AuthCodeTest do Plug.Adapters.Cowboy.http Client, [], port: 4998 conn = call(Client, conn(:get, "/auth")) - [location] = get_resp_header conn, "Location" + [location] = get_resp_header conn, "location" conn = call(Provider, conn(:get, location)) assert conn.status == 302 - [location] = get_resp_header conn, "Location" + [location] = get_resp_header conn, "location" conn = call(Client, conn(:get, location)) assert conn.params["code"] == "1234" diff --git a/test/test_helper.exs b/test/test_helper.exs index 7e59c83..e946c98 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -12,7 +12,7 @@ defmodule Provider do get "/oauth/authorize" do redirect_uri = conn.params["redirect_uri"] conn - |> put_resp_header("Location", redirect_uri <> "?" <> "code=1234") + |> put_resp_header("location", redirect_uri <> "?" <> "code=1234") |> send_resp(302, "") end @@ -47,7 +47,7 @@ defmodule Client do get "/auth" do conn - |> put_resp_header("Location", OAuth2.Client.authorize_url!(client(conn))) + |> put_resp_header("location", OAuth2.Client.authorize_url!(client(conn))) |> send_resp(302, "") end