Skip to content

Commit

Permalink
Merge pull request #15 from aquamatt/fix/invalid_signature
Browse files Browse the repository at this point in the history
Fix invalid signature on authenticated GET request
  • Loading branch information
bnhansn authored Oct 16, 2018
2 parents 462a344 + 5ebf31e commit f3baf6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ex_gdax/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ defmodule ExGdax.Api do

def get(path, params \\ %{}, config \\ nil) do
config = Config.config_or_env_config(config)
qs = query_string(path, params)

path
|> query_string(params)
qs
|> url(config)
|> HTTPoison.get(headers("GET", path, %{}, config))
|> HTTPoison.get(headers("GET", qs, %{}, config))
|> parse_response()
end

Expand Down

0 comments on commit f3baf6a

Please sign in to comment.