diff --git a/lib/elixir_dropbox.ex b/lib/elixir_dropbox.ex index e944282..a11e706 100644 --- a/lib/elixir_dropbox.ex +++ b/lib/elixir_dropbox.ex @@ -4,8 +4,6 @@ defmodule ElixirDropbox do """ use HTTPoison.Base - @type response :: {any} - @base_url Application.get_env(:elixir_dropbox, :base_url) def post(client, url, body \\ "") do @@ -41,6 +39,9 @@ defmodule ElixirDropbox do def post_request(client, url, body, headers) do headers = Map.merge(headers, headers(client)) + IO.inspect headers + IO.inspect url + IO.inspect body HTTPoison.post!(url, body, headers) |> process_response end diff --git a/mix.exs b/mix.exs index 2e029b0..0219853 100644 --- a/mix.exs +++ b/mix.exs @@ -31,7 +31,7 @@ defmodule ElixirDropbox.Mixfile do # Type "mix help deps" for more examples and options defp deps do [ - {:httpoison, "~> 1.0"}, + {:httpoison, "~> 1.5"}, {:poison, "~> 1.5"}, {:inch_ex, "~> 0.5", only: [:dev, :test]}, {:json, "~> 0.3.0"},